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:
Sam Lantinga
2009-12-17 14:33:00 +00:00
parent 8cd32e9284
commit fb5a13f95e

View File

@@ -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;