From: Sam Lantinga Date: Thu, 17 Dec 2009 14:33:00 +0000 (+0000) Subject: Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels. X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab66cdb4ccbec71ec4948a883510986189078dce;p=sdl_omap.git Merged SDL 1.3 revision 5424, fixing a crash in the joystick code on recent kernels. --- 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;