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

updated xorg-videoproto (2.3.1 -> 2.3.3)
author Hans-G?nter Theisgen
date Tue Nov 12 16:08:16 2019 +0100 (2019-11-12)
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	Tue Nov 12 16:08:16 2019 +0100
     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;