comparison src/video/photon/SDL_ph_events.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
440 void ph_InitKeymap(void) 440 void ph_InitKeymap(void)
441 { 441 {
442 int i; 442 int i;
443 443
444 /* Odd keys used in international keyboards */ 444 /* Odd keys used in international keyboards */
445 for (i=0; i<SDL_TABLESIZE(ODD_keymap); ++i) 445 for (i=0; i<SDL_arraysize(ODD_keymap); ++i)
446 { 446 {
447 ODD_keymap[i] = SDLK_UNKNOWN; 447 ODD_keymap[i] = SDLK_UNKNOWN;
448 } 448 }
449 449
450 /* Map the miscellaneous keys */ 450 /* Map the miscellaneous keys */
451 for (i=0; i<SDL_TABLESIZE(MISC_keymap); ++i) 451 for (i=0; i<SDL_arraysize(MISC_keymap); ++i)
452 { 452 {
453 MISC_keymap[i] = SDLK_UNKNOWN; 453 MISC_keymap[i] = SDLK_UNKNOWN;
454 } 454 }
455 455
456 MISC_keymap[Pk_BackSpace&0xFF] = SDLK_BACKSPACE; 456 MISC_keymap[Pk_BackSpace&0xFF] = SDLK_BACKSPACE;