On Tue, 20 Nov 2001, Hrvoje Niksic wrote:

> > Judging from the code, it probably happened when a file was
> > completely empty.
>
> Really?  I thought that would be EOF, where fgets() should return 0.

You're right of course. Hm. No, it can probably only happen if the first byte
in an existing file is a zero-byte, so that strlen() return 0...

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol

Reply via email to