wok-6.x diff libsdl/stuff/sdl-1.2.14-joystick-crash.diff @ rev 12870
Up: automake to 1.11.3.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Thu May 24 21:37:47 2012 +0000 (2012-05-24) |
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 May 24 21:37:47 2012 +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;