summaryrefslogtreecommitdiff
path: root/src/joystick
diff options
context:
space:
mode:
authorSam Lantinga <slouken@libsdl.org>2009-10-10 10:02:17 +0000
committerSam Lantinga <slouken@libsdl.org>2009-10-10 10:02:17 +0000
commit55756877443198a7be298cb52c2372c5b0f625bc (patch)
tree31490f9a41bc4db7dc24a2955e05f52037485807 /src/joystick
parent89229aae607613e8b46ef07f9d798f0fdaf59a8c (diff)
Debian patch: 218_joystick_memmove.diff
--HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%404032
Diffstat (limited to 'src/joystick')
-rw-r--r--src/joystick/SDL_joystick.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 8fd470bd..4d2c1741 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -391,8 +391,8 @@ 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_numjoysticks - i) * sizeof(joystick));
+ SDL_memmove(&SDL_joysticks[i], &SDL_joysticks[i + 1],
+ (SDL_numjoysticks - i) * sizeof(joystick));
break;
}
}