There is another problem which I just noticed: strncpy is used
improperly. strncpy does *not* copy a NULL-terminator to the destination
if the string is chopped off due to the length restriction, hence in
this case, fftest and ffmvforce (and possibly other tools) end up with a
non-null-terminated string.

A possible solution would be to set device_file_name[255] = 0; and then
use 255 as limit for strncpy. Note that this is NOT fixed by my patch.

Kind regards,
Ralf


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to