Debian patch: 218_joystick_memmove.diff SDL-1.2
authorSam Lantinga <slouken@libsdl.org>
Sat, 10 Oct 2009 10:01:38 +0000
branchSDL-1.2
changeset 4310 c878006a5948
parent 4309 3aab8b57cbd1
child 4311 1238da4a7112
Debian patch: 218_joystick_memmove.diff
src/joystick/SDL_joystick.c
--- 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;
 		}