Michael Stefaniuc : dinput: Use assignment instead of memcpy to copy a struct.
Module: wine Branch: master Commit: ab542a92d5e4f5eb60e18d4a62e7559bc454ec29 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ab542a92d5e4f5eb60e18d4a62... Author: Michael Stefaniuc <mstefani(a)redhat.de> Date: Thu Jan 24 15:07:42 2013 +0100 dinput: Use assignment instead of memcpy to copy a struct. --- dlls/dinput/joystick_linuxinput.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/dlls/dinput/joystick_linuxinput.c b/dlls/dinput/joystick_linuxinput.c index 466b6bf..0a044a5 100644 --- a/dlls/dinput/joystick_linuxinput.c +++ b/dlls/dinput/joystick_linuxinput.c @@ -314,7 +314,7 @@ static void find_joydevs(void) continue; } joydevs = new_joydevs; - memcpy(joydevs + have_joydevs, &joydev, sizeof(joydev)); + joydevs[have_joydevs] = joydev; have_joydevs++; close(fd);
participants (1)
-
Alexandre Julliard