diff src/events/SDL_keyboard_c.h @ 2307:47f8a579cd9b

Fixed array overrun
author Sam Lantinga <slouken@libsdl.org>
date Thu, 07 Feb 2008 16:14:43 +0000
parents d87417504c75
children 99210400e8b9
line wrap: on
line diff
--- a/src/events/SDL_keyboard_c.h	Thu Feb 07 16:00:29 2008 +0000
+++ b/src/events/SDL_keyboard_c.h	Thu Feb 07 16:14:43 2008 +0000
@@ -37,7 +37,7 @@
     /* Data common to all keyboards */
     SDL_WindowID focus;
     Uint16 modstate;
-    Uint8 keystate[(SDL_NUM_SCANCODES + 7) / 8];
+    Uint8 keystate[SDL_NUM_SCANCODES];
     SDLKey keymap[SDL_NUM_SCANCODES];
 
     void *driverdata;