Skip to content

Commit

Permalink
Debian patch: 218_joystick_memmove.diff
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 10, 2009
1 parent 4b9287d commit 3921f66
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/SDL_joystick.c
Expand Up @@ -376,7 +376,7 @@ void SDL_JoystickClose(SDL_Joystick *joystick)
/* Remove joystick from list */
for ( i=0; SDL_joysticks[i]; ++i ) {
if ( joystick == SDL_joysticks[i] ) {
SDL_memcpy(&SDL_joysticks[i], &SDL_joysticks[i+1],
SDL_memmove(&SDL_joysticks[i], &SDL_joysticks[i+1],
(SDL_numjoysticks-i)*sizeof(joystick));
break;
}
Expand Down

0 comments on commit 3921f66

Please sign in to comment.