Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Fixed crash in joystick handling code. Newer 2.6 kernels add an addit…
Browse files Browse the repository at this point in the history
…ional '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.
  • Loading branch information
slouken committed Dec 17, 2009
1 parent 43403ba commit 75053a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/joystick/linux/SDL_sysjoystick.c
Expand Up @@ -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;
Expand Down

0 comments on commit 75053a8

Please sign in to comment.