Package: libsdl1.2debian
Version: 1.2.14-2
Severity: important
Tags: patch

There is a bug that causes the joystick to be detected as 1 axis 13 buttons
 0 hat instead of 4 axis, 12 buttons, 1 hat

Found a commit that fixes it in upstream trunk rev 5424

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.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.32-trunk-686-mm (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libsdl1.2debian depends on:
ii  libsdl1.2debian-alsa          1.2.14-2   Simple DirectMedia Layer (with X11

libsdl1.2debian recommends no packages.

libsdl1.2debian suggests no packages.

-- no debconf information
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;

Reply via email to