On Thu, 29 Jul 2004, Matto Marjanovic wrote: > Didn't this come up already just a few months ago?
Yes, and a "band-aid" was slapped on (apparently not completely correctly). > 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';". OR, my preference, rewrite the handling of the buffers to be dynamic and use calloc()/malloc() with perhaps a limit on the size allocated to PATH_MAX. On a different topic but still within mp2enc... There's a lot of 10 or 12 year old ifdef code for MSC60 (Microsoft C 6.0), and MACINTOSH. The MACINTOSH stuff isn't needed for OS/X - do we still want/need to support OS 6 or whatever was out back in 1991? Cheers, Steven Schultz ------------------------------------------------------- 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