diff src/video/wscons/SDL_wsconsevents.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents dc0e13e7e1ae
children 1736c5e2173f
line wrap: on
line diff
--- a/src/video/wscons/SDL_wsconsevents.c	Sun Feb 19 23:38:57 2006 +0000
+++ b/src/video/wscons/SDL_wsconsevents.c	Sun Feb 19 23:46:34 2006 +0000
@@ -100,7 +100,7 @@
   keysym->sym = SDLK_UNKNOWN;
   keysym->mod = KMOD_NONE;
 
-  if (scancode < SDL_TABLESIZE(keymap))
+  if (scancode < SDL_arraysize(keymap))
     keysym->sym = keymap[scancode];
 
   if (keysym->sym == SDLK_UNKNOWN)
@@ -141,7 +141,7 @@
   int i;
 
   /* Make sure unknown keys are mapped correctly */
-  for (i=0; i < SDL_TABLESIZE(keymap); i++) {
+  for (i=0; i < SDL_arraysize(keymap); i++) {
     keymap[i] = SDLK_UNKNOWN;
   }