>If I run: > >mp2enc -o /path/file.mp2 < audio.wav > >and the string "/path/file.mp2" is over 80 characters long then >mp2enc corrupts the output filename. I'm using mjpegtools-1.6.2 >and compiled with gcc-3.2.2.
Didn't this come up already just a few months ago? There is a "MAX_NAME_SIZE" #define'd to 81 [in aenc/common.h], and a subtle misuse of strncpy() [in aenc/musicin.c] (no null-termination is enforced, which is why the filename is corrupted instead of just being truncated). MAX_NAME_SIZE should be set to PATH_MAX (defined via /usr/include/limits.h, I think). And, all strncpy()'s should be followed by "xxx[LAST_BYTE] = '\0';". -matt m. ------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Mjpeg-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/mjpeg-users