diff 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
line wrap: on
line diff
--- a/src/joystick/SDL_joystick.c	Sun Feb 19 23:38:57 2006 +0000
+++ b/src/joystick/SDL_joystick.c	Sun Feb 19 23:46:34 2006 +0000
@@ -554,7 +554,7 @@
 	switch (state) {
 		case SDL_QUERY:
 			state = SDL_IGNORE;
-			for ( i=0; i<SDL_TABLESIZE(event_list); ++i ) {
+			for ( i=0; i<SDL_arraysize(event_list); ++i ) {
 				state = SDL_EventState(event_list[i],SDL_QUERY);
 				if ( state == SDL_ENABLE ) {
 					break;
@@ -562,7 +562,7 @@
 			}
 			break;
 		default:
-			for ( i=0; i<SDL_TABLESIZE(event_list); ++i ) {
+			for ( i=0; i<SDL_arraysize(event_list); ++i ) {
 				SDL_EventState(event_list[i], state);
 			}
 			break;