wok diff libsdl/stuff/sdl-1.2.14-joystick-crash.diff @ rev 25556
created recipes for nted and nted-lang
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 22 14:54:15 2023 +0100 (19 months ago) |
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 Sat Apr 22 14:54:15 2023 +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;