# HG changeset patch # User Sam Lantinga # Date 1261034568 0 # Node ID 493f252a455c9e36e45388c78157e5914d0c07a4 # Parent 06f0768a904c47a64b3bd57a33f19b7dab152218 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. diff -r 06f0768a904c -r 493f252a455c src/joystick/linux/SDL_sysjoystick.c --- a/src/joystick/linux/SDL_sysjoystick.c Thu Dec 17 06:08:20 2009 +0000 +++ b/src/joystick/linux/SDL_sysjoystick.c Thu Dec 17 07:22:48 2009 +0000 @@ -701,7 +701,7 @@ continue; } if (test_bit(i, absbit)) { - int values[5]; + int values[6]; if (ioctl(fd, EVIOCGABS(i), values) < 0) continue;