wok view libsdl/stuff/sdl-1.2.14-joystick-crash.diff @ rev 21627
updated opencsg and opencsg-dev (1.4.0 -> 1.4.2)
author | Hans-G?nter Theisgen |
---|---|
date | Mon May 27 17:32:03 2019 +0100 (2019-05-27) |
parents | |
children |
line source
1 Description: Fix crash with joystick detection.
2 Index: libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c
3 ===================================================================
4 --- libsdl1.2-1.2.14.orig/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:37:36.000000000 -0500
5 +++ libsdl1.2-1.2.14/src/joystick/linux/SDL_sysjoystick.c 2010-01-12 12:38:27.000000000 -0500
6 @@ -700,7 +700,7 @@
7 continue;
8 }
9 if ( test_bit(i, absbit) ) {
10 - int values[5];
11 + int values[6];
13 if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
14 continue;