diff options
Diffstat (limited to 'input/joystick.c')
-rw-r--r-- | input/joystick.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/input/joystick.c b/input/joystick.c index 6be749e21d..f48f3aab25 100644 --- a/input/joystick.c +++ b/input/joystick.c @@ -46,7 +46,7 @@ int mp_input_joystick_init(char* dev) { while(! inited) { l = 0; while((unsigned int)l < sizeof(struct js_event)) { - int r = read(fd,&ev+l,sizeof(struct js_event)-l); + int r = read(fd,((char*)&ev)+l,sizeof(struct js_event)-l); if(r < 0) { if(errno == EINTR) continue; |