On Thu, 29 Jul 2004, Steven M. Schultz wrote:

> 
> 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';".

        I've checked in the changes to simply 'strdup()' the argument passed
        on the command line.  If a script/program/user supplies a name longer
        than 1024 characters, well, the kernel will fail the open().

        Also did a bit of cleanup, modernization and cruft removal (the AIFF
        routines were still present but only WAV files were accepted - seemed
        sane enough to remove the unreferenced code).

        Appears to work so far (tested on OS/X so far).  If breakage has been
        introduced it'll be fixed as soon as possible (after a bug report ;)).

        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

Reply via email to