Mercurial > sdl-ios-xcode
diff src/joystick/SDL_joystick.c @ 4310:c878006a5948 SDL-1.2
Debian patch: 218_joystick_memmove.diff
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 10 Oct 2009 10:01:38 +0000 |
parents | a1b03ba2fcd0 |
children | 3c35b8d3b9fc |
line wrap: on
line diff
--- a/src/joystick/SDL_joystick.c Sat Oct 10 09:59:29 2009 +0000 +++ b/src/joystick/SDL_joystick.c Sat Oct 10 10:01:38 2009 +0000 @@ -376,7 +376,7 @@ /* 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; }