comparison src/video/fbcon/SDL_fbevents.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
992 int i; 992 int i;
993 993
994 /* Initialize the Linux key translation table */ 994 /* Initialize the Linux key translation table */
995 995
996 /* First get the ascii keys and others not well handled */ 996 /* First get the ascii keys and others not well handled */
997 for (i=0; i<SDL_TABLESIZE(keymap); ++i) { 997 for (i=0; i<SDL_arraysize(keymap); ++i) {
998 switch(i) { 998 switch(i) {
999 /* These aren't handled by the x86 kernel keymapping (?) */ 999 /* These aren't handled by the x86 kernel keymapping (?) */
1000 case SCANCODE_PRINTSCREEN: 1000 case SCANCODE_PRINTSCREEN:
1001 keymap[i] = SDLK_PRINT; 1001 keymap[i] = SDLK_PRINT;
1002 break; 1002 break;
1031 default: 1031 default:
1032 keymap[i] = KVAL(vga_keymap[0][i]); 1032 keymap[i] = KVAL(vga_keymap[0][i]);
1033 break; 1033 break;
1034 } 1034 }
1035 } 1035 }
1036 for (i=0; i<SDL_TABLESIZE(keymap); ++i) { 1036 for (i=0; i<SDL_arraysize(keymap); ++i) {
1037 switch(keymap_temp[i]) { 1037 switch(keymap_temp[i]) {
1038 case K_F1: keymap[i] = SDLK_F1; break; 1038 case K_F1: keymap[i] = SDLK_F1; break;
1039 case K_F2: keymap[i] = SDLK_F2; break; 1039 case K_F2: keymap[i] = SDLK_F2; break;
1040 case K_F3: keymap[i] = SDLK_F3; break; 1040 case K_F3: keymap[i] = SDLK_F3; break;
1041 case K_F4: keymap[i] = SDLK_F4; break; 1041 case K_F4: keymap[i] = SDLK_F4; break;