comparison src/joystick/SDL_joystick.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
552 int i; 552 int i;
553 553
554 switch (state) { 554 switch (state) {
555 case SDL_QUERY: 555 case SDL_QUERY:
556 state = SDL_IGNORE; 556 state = SDL_IGNORE;
557 for ( i=0; i<SDL_TABLESIZE(event_list); ++i ) { 557 for ( i=0; i<SDL_arraysize(event_list); ++i ) {
558 state = SDL_EventState(event_list[i],SDL_QUERY); 558 state = SDL_EventState(event_list[i],SDL_QUERY);
559 if ( state == SDL_ENABLE ) { 559 if ( state == SDL_ENABLE ) {
560 break; 560 break;
561 } 561 }
562 } 562 }
563 break; 563 break;
564 default: 564 default:
565 for ( i=0; i<SDL_TABLESIZE(event_list); ++i ) { 565 for ( i=0; i<SDL_arraysize(event_list); ++i ) {
566 SDL_EventState(event_list[i], state); 566 SDL_EventState(event_list[i], state);
567 } 567 }
568 break; 568 break;
569 } 569 }
570 return(state); 570 return(state);