Re: CVS commit: src/lib/libc/stdio

2009-10-14 Thread David Laight
On Thu, Oct 15, 2009 at 12:01:01AM +0200, Alan Barrett wrote: > On Wed, 14 Oct 2009, David Laight wrote: > > Module Name:src > > Committed By: dsl > > Date: Wed Oct 14 21:25:52 UTC 2009 > > > > Modified Files: > > src/lib/libc/stdio: fgets.c vfprintf.c > > > > Log

Re: CVS commit: src/lib/libc/stdio

2009-10-14 Thread Alan Barrett
On Wed, 14 Oct 2009, David Laight wrote: > Module Name: src > Committed By: dsl > Date: Wed Oct 14 21:25:52 UTC 2009 > > Modified Files: > src/lib/libc/stdio: fgets.c vfprintf.c > > Log Message: > Change a while () {} into a do {} while() so that fgets(buf, 1, file) > detects EOF o