changeset 4394:42012a6afb5b SDL-1.2

Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 17 Dec 2009 14:33:00 +0000
parents 9afe12fb4c41
children 3c35b8d3b9fc
files src/joystick/linux/SDL_sysjoystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/linux/SDL_sysjoystick.c	Mon Dec 14 22:41:31 2009 +0000
+++ b/src/joystick/linux/SDL_sysjoystick.c	Thu Dec 17 14:33:00 2009 +0000
@@ -700,7 +700,7 @@
 				continue;
 			}
 			if ( test_bit(i, absbit) ) {
-				int values[5];
+				int values[6];
 
 				if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
 					continue;