Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels.
authorSam Lantinga <slouken@libsdl.org>
Thu, 17 Dec 2009 14:33:00 +0000 (14:33 +0000)
committernotaz <notasas@gmail.com>
Mon, 11 Mar 2013 21:15:33 +0000 (23:15 +0200)
src/joystick/linux/SDL_sysjoystick.c

index 0b09ffb..5960c84 100644 (file)
@@ -700,7 +700,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
                                continue;
                        }
                        if ( test_bit(i, absbit) ) {
-                               int values[5];
+                               int values[6];
 
                                if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
                                        continue;