>On Sat, 2004-02-28 at 14:08, Carlos Sierra wrote:
 >> I've been using mp2enc from long but in the last release from the debian 
 >> unstable repository it crashes whe the filename specified with -o option is
 >> too long.
 ...
 >
 >It has always been like that. We reserve MAX_NAME_SIZE (defined as 81)
 >bytes for the name, so 80 bytes is the max. size of a filename. Seems
 >like very little, but it's really a lot. You can increase MAX_NAME_SIZE
 >if you need a longer name for specific purposes (see aenc/common.h). Or
 >use shorter names. ;).

Couldn't this just use PATH_MAX or NAME_MAX?  The first is the maximum
 length of a pathname in the system, the second is the maximum length
 of a filename by itself.  Both are defined by  #include <limits.h>.

-matt m.


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Mjpeg-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to