diff src/video/gem/SDL_gemevents.c @ 2019:d20f4510c718

/me dumb, sizeof(keymap != number of elements
author Patrice Mandin <patmandin@gmail.com>
date Thu, 07 Sep 2006 20:50:13 +0000
parents c121d94672cb
children d774e9d7c2a8
line wrap: on
line diff
--- a/src/video/gem/SDL_gemevents.c	Tue Sep 05 19:32:35 2006 +0000
+++ b/src/video/gem/SDL_gemevents.c	Thu Sep 07 20:50:13 2006 +0000
@@ -95,7 +95,7 @@
     SDL_memset(gem_currentascii, 0, sizeof(gem_currentascii));
 
     /* Initialize keymap */
-    for (i = 0; i < sizeof(keymap); i++)
+    for (i = 0; i < ATARIBIOS_MAXKEYS; i++)
         keymap[i] = SDLK_UNKNOWN;
 
     /* Functions keys */