Re: [Patch, libfortran] Some path handling fixes

2011-04-29 Thread Jerry DeLisle
On 04/29/2011 08:20 AM, Janne Blomqvist wrote: Hello all, since about a decade or so ago, POSIX specifies that PATH_MAX includes the trailing null byte (previously it was undefined). However, libgfortran has incorrectly assumed the opposite, and has thus created temporary buffers of length PATH_

Re: [Patch, libfortran] Some path handling fixes

2011-04-29 Thread Steve Kargl
On Fri, Apr 29, 2011 at 06:20:17PM +0300, Janne Blomqvist wrote: > > since about a decade or so ago, POSIX specifies that PATH_MAX includes > the trailing null byte (previously it was undefined). However, > libgfortran has incorrectly assumed the opposite, and has thus created > temporary buffers

[Patch, libfortran] Some path handling fixes

2011-04-29 Thread Janne Blomqvist
Hello all, since about a decade or so ago, POSIX specifies that PATH_MAX includes the trailing null byte (previously it was undefined). However, libgfortran has incorrectly assumed the opposite, and has thus created temporary buffers of length PATH_MAX + 1 for holding paths when converting from Fo