From 75053a8b73e898b395edb93ca17a3938c1604633 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Thu, 17 Dec 2009 07:22:48 +0000 Subject: [PATCH] Fixed crash in joystick handling code. Newer 2.6 kernels add an additional 'resolution' field to input_absinfo. Note that we don't use that structure since we want to have enough space for the values even when building with an older kernel. --- 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 8c9555cae..62c3de841 100644 --- a/src/joystick/linux/SDL_sysjoystick.c +++ b/src/joystick/linux/SDL_sysjoystick.c @@ -701,7 +701,7 @@ 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;