changeset 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 3aab8b57cbd1
children 1238da4a7112
files src/joystick/SDL_joystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;
 		}