Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Debian patch: 218_joystick_memmove.diff

  • Loading branch information
slouken committed Oct 10, 2009
1 parent 4c97b65 commit 26ef91ab19715e6386360b853494ef789fb680cd
Showing with 2 additions and 2 deletions.
  1. +2 −2 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;
}
}

0 comments on commit 26ef91a

Please sign in to comment.