Skip to content

Commit

Permalink
sprintf should have been snprintf
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Feb 19, 2006
1 parent ad2dcd9 commit f14aad5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/joystick/os2/SDL_sysjoystick.c
Expand Up @@ -292,7 +292,7 @@ if (numdevs > 0)
/* 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 */
Expand Down
2 changes: 1 addition & 1 deletion src/loadso/macosx/SDL_sysloadso.c
Expand Up @@ -1016,7 +1016,7 @@ static void *SDL_OSX_dlsym(void * dl_restrict handle, const char * dl_restrict s
malloc_sym = SDL_malloc(sym_len + 2);
if (malloc_sym)
{
SDL_sprintf(malloc_sym, sym_len+2, "_%s", symbol);
SDL_snprintf(malloc_sym, sym_len+2, "_%s", symbol);
value = dlsymIntern(handle, malloc_sym, 1);
SDL_free(malloc_sym);
}
Expand Down

0 comments on commit f14aad5

Please sign in to comment.