mirror of
https://github.com/yawut/SDL.git
synced 2026-10-02 05:06:46 -05:00
Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels.
--HG-- branch : SDL-1.2
This commit is contained in:
@@ -700,7 +700,7 @@ static SDL_bool EV_ConfigJoystick(SDL_Joystick *joystick, int fd)
|
||||
continue;
|
||||
}
|
||||
if ( test_bit(i, absbit) ) {
|
||||
int values[5];
|
||||
int values[6];
|
||||
|
||||
if ( ioctl(fd, EVIOCGABS(i), values) < 0 )
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user