Hi Ralf, On Sat, 04 May 2013 09:45:39 +0200, Ralf Jung <p...@ralfj.de> wrote: > I cannot use fftest and ffmvforce with my Xbox controller. That controller > has the following filename: > > /dev/input/by-id/usb-©Microsoft_Corporation_Controller_04ABDCE-joystick > > which does not work with the mentioned tools, as they chop off the filename > after 64 characters. The attached patch increases this limit to 256 > characters.
Thanks for the bug report; this also affects ffset. I've adapted your patch slightly, using PATH_MAX instead of 256. This also addresses the point you raise in your follow-up email about the terminating null, since PATH_MAX includes that. It's incompatible with the Hurd but the joystick tools are Linux-specific anyway... Regards, Stephen
signature.asc
Description: PGP signature