comparison src/video/aalib/SDL_aaevents.c @ 1379:c0a74f199ecf

Use only safe string functions
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 23:46:34 +0000
parents 19418e4422cb
children d910939febfa
comparison
equal deleted inserted replaced
1378:dc0e13e7e1ae 1379:c0a74f199ecf
120 int i; 120 int i;
121 static const char *std_keys = " 01234567890&#'()_-|$*+-=/\\:;.,!?<>{}[]@~%^\x9"; 121 static const char *std_keys = " 01234567890&#'()_-|$*+-=/\\:;.,!?<>{}[]@~%^\x9";
122 const char *std; 122 const char *std;
123 123
124 /* Initialize the AAlib key translation table */ 124 /* Initialize the AAlib key translation table */
125 for ( i=0; i<SDL_TABLESIZE(keymap); ++i ) 125 for ( i=0; i<SDL_arraysize(keymap); ++i )
126 keymap[i] = SDLK_UNKNOWN; 126 keymap[i] = SDLK_UNKNOWN;
127 127
128 keymap[AA_ESC] = SDLK_ESCAPE; 128 keymap[AA_ESC] = SDLK_ESCAPE;
129 keymap[AA_UP] = SDLK_UP; 129 keymap[AA_UP] = SDLK_UP;
130 keymap[AA_DOWN] = SDLK_DOWN; 130 keymap[AA_DOWN] = SDLK_DOWN;