src/joystick/os2/SDL_sysjoystick.c
changeset 1375 3793c4b34a92
parent 1361 19418e4422cb
child 1379 c0a74f199ecf
--- a/src/joystick/os2/SDL_sysjoystick.c	Sun Feb 19 17:38:32 2006 +0000
+++ b/src/joystick/os2/SDL_sysjoystick.c	Sun Feb 19 18:46:58 2006 +0000
@@ -292,7 +292,7 @@
 		/* Hack to define Joystick Port Names */
 		if ( numdevs > maxdevs ) numdevs = maxdevs;
 		for (i=0; i<numdevs; i++) {
-			SDL_sprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id);
+			SDL_snprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id);
 		}
 	}
 /* Return the number of devices found */