author | Sam Lantinga |
Sat, 10 Oct 2009 10:01:38 +0000 | |
branch | SDL-1.2 |
changeset 4310 | c878006a5948 |
parent 4309 | 3aab8b57cbd1 |
child 4311 | 1238da4a7112 |
1.1 --- a/src/joystick/SDL_joystick.c Sat Oct 10 09:59:29 2009 +0000 1.2 +++ b/src/joystick/SDL_joystick.c Sat Oct 10 10:01:38 2009 +0000 1.3 @@ -376,7 +376,7 @@ 1.4 /* Remove joystick from list */ 1.5 for ( i=0; SDL_joysticks[i]; ++i ) { 1.6 if ( joystick == SDL_joysticks[i] ) { 1.7 - SDL_memcpy(&SDL_joysticks[i], &SDL_joysticks[i+1], 1.8 + SDL_memmove(&SDL_joysticks[i], &SDL_joysticks[i+1], 1.9 (SDL_numjoysticks-i)*sizeof(joystick)); 1.10 break; 1.11 }