wok diff libsdl/stuff/sdl-1.2.14-joystick-crash.diff @ rev 11016

Up: squirrelmail to 1.4.22.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Oct 13 10:45:54 2011 +0000 (2011-10-13)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/libsdl/stuff/sdl-1.2.14-joystick-crash.diff	Thu Oct 13 10:45:54 2011 +0000
     1.3 @@ -0,0 +1,14 @@
     1.4 +Description: Fix crash with joystick detection.
     1.5 +Index: libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c
     1.6 +===================================================================
     1.7 +--- libsdl1.2-1.2.14.orig/src/joystick/linux/SDL_sysjoystick.c	2010-01-12 12:37:36.000000000 -0500
     1.8 ++++ libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c	2010-01-12 12:38:27.000000000 -0500
     1.9 +@@ -700,7 +700,7 @@
    1.10 + 				continue;
    1.11 + 			}
    1.12 + 			if ( test_bit(i, absbit) ) {
    1.13 +-				int values[5];
    1.14 ++				int values[6];
    1.15 + 
    1.16 + 				if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
    1.17 + 					continue;