[MPlayer-cvslog] CVS: main/input joystick.c,1.8,1.9

Richard Felker CVS syncmail at mplayerhq.hu
Fri Mar 31 06:56:11 CEST 2006


CVS change done by Richard Felker CVS

Update of /cvsroot/mplayer/main/input
In directory mail:/var2/tmp/cvs-serv15835/input

Modified Files:
	joystick.c 
Log Message:
prevent overflow.. wtf?! from irc:
<@tcsetattr> how many dimensions can people have in a joystick? do you
travel to other universes with that thing?
[apparently more than 10...?!]
(reported on irc by DrewZzz)


Index: joystick.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/joystick.c,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- joystick.c	25 Oct 2005 21:23:45 -0000	1.8
+++ joystick.c	31 Mar 2006 04:56:09 -0000	1.9
@@ -30,7 +30,7 @@
 
 #include <linux/joystick.h>
 
-int axis[10];
+int axis[256];
 int btns = 0;
 
 int mp_input_joystick_init(char* dev) {




More information about the MPlayer-cvslog mailing list