From 633f009252a65a5be0dcab425de7d162af4c0f65 Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Sun, 21 Aug 2016 17:37:21 +0000 Subject: [PATCH] Fix out of bounds access to keybindings: K_PAUSE is 255. Noticed by Axel Gneiting (bug #14). git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1336 af15c1b1-3010-417e-b628-4374ebc0bcbd --- Quake/keys.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Quake/keys.h b/Quake/keys.h index 02cc41fd..32f2eac2 100644 --- a/Quake/keys.h +++ b/Quake/keys.h @@ -154,7 +154,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #define K_LTRIGGER 251 #define K_RTRIGGER 252 -#define MAX_KEYS 253 +#define MAX_KEYS 256 #define MAXCMDLINE 256