Re: read-file

2006-06-16 Thread Aaron Stone
On Fri, 2006-06-16 at 11:18 -0700, Paul Eggert wrote: > Simon Josefsson <[EMAIL PROTECTED]> writes: > > > + if (buf) > > +buf[size] = '\0'; > > The file reading code returns NULL if the file was empty? But the > comments makes it sound like it will return xstrdup (""), and that > would be m

Re: [bug-gnulib] Handling null pointers to printf

2006-05-26 Thread Aaron Stone
On Fri, 2006-05-26 at 10:55 +0100, James Youngman wrote: > On 5/24/06, Bruno Haible <[EMAIL PROTECTED]> wrote: > > > Then the argument about the glibc behaviour and the *BSD libc behaviour is > > moot: if there's a single platform where it crashes, and if the standard > > says > > that NULL are i

Handling null pointers to printf

2006-05-24 Thread Aaron Stone
Hi, When glibc gets a null pointer in one of the printf-family of functions for a %s argument, it prints "(null)" and doesn't crash. All of the *BSD's libc's also print "(null)". Gnulib, when using its own vasnprintf implementation, does crash. The principal offender is Solaris, for which a) thi