From ab66cdb4ccbec71ec4948a883510986189078dce Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Dec 2009 14:33:00 +0000 Subject: [PATCH] Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels. --- src/joystick/linux/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/linux/SDL_sysjoystick.c b/src/joystick/linux/SDL_sysjoystick.c index 0b09ffb..5960c84 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -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; -- 2.39.5