Date: Tue, 26 May 1998 19:20:20 +0300 (IDT) From: Eli Zaretskii To: Alexander Bokovoy cc: djgpp AT delorie DOT com Subject: Re: Bug in GCC 2.8.0? MAXFILE is equal 9 while LFN are supported In-Reply-To: <9632.980525@bspu.unibel.by> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Mon, 25 May 1998, Alexander Bokovoy wrote: > I found that constant MAXFILE defined in dir.h is equal 9 which means > that buffer for file name generated by fnsplit() must be at least 8 > symbols length. But DJGPP's libc support long file names (LFN) up to > 260 symbols length and in such case buffer must be greater than 8 > symbols to proper file name handling. It means that every time when > fnsplit() proceed with file name longer than 8 symbols the result will > be undefined. I understand that this is a bug in the example only, because the rest of the code doesn't depend on MAXFILE. Is that what you are telling, or is there any additional problems with the function itself?