comparison src/joystick/os2/SDL_sysjoystick.c @ 1375:3793c4b34a92

sprintf should have been snprintf
author Sam Lantinga <slouken@libsdl.org>
date Sun, 19 Feb 2006 18:46:58 +0000
parents 19418e4422cb
children c0a74f199ecf
comparison
equal deleted inserted replaced
1374:998b7f9a287a 1375:3793c4b34a92
290 } 290 }
291 } 291 }
292 /* Hack to define Joystick Port Names */ 292 /* Hack to define Joystick Port Names */
293 if ( numdevs > maxdevs ) numdevs = maxdevs; 293 if ( numdevs > maxdevs ) numdevs = maxdevs;
294 for (i=0; i<numdevs; i++) { 294 for (i=0; i<numdevs; i++) {
295 SDL_sprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id); 295 SDL_snprintf (SYS_JoyData[i].szDeviceName, SDL_arraysize(szDeviceName), "Default Joystick %c", 'A'+SYS_JoyData[i].id);
296 } 296 }
297 } 297 }
298 /* Return the number of devices found */ 298 /* Return the number of devices found */
299 return(numdevs); 299 return(numdevs);
300 } 300 }