Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels. SDL-1.2
authorSam Lantinga
Thu, 17 Dec 2009 14:33:00 +0000
branchSDL-1.2
changeset 439442012a6afb5b
parent 4393 9afe12fb4c41
child 4395 3c35b8d3b9fc
Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels.
src/joystick/linux/SDL_sysjoystick.c
     1.1 --- a/src/joystick/linux/SDL_sysjoystick.c	Mon Dec 14 22:41:31 2009 +0000
     1.2 +++ b/src/joystick/linux/SDL_sysjoystick.c	Thu Dec 17 14:33:00 2009 +0000
     1.3 @@ -700,7 +700,7 @@
     1.4  				continue;
     1.5  			}
     1.6  			if ( test_bit(i, absbit) ) {
     1.7 -				int values[5];
     1.8 +				int values[6];
     1.9  
    1.10  				if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
    1.11  					continue;