NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

PR/41992 CVS commit: src/lib/libc/stdio

The following reply was made to PR standards/41992; it has been noted by GNATS.

From: David Laight <>
Subject: PR/41992 CVS commit: src/lib/libc/stdio
Date: Wed, 14 Oct 2009 21:25:52 +0000

 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 on an empty file.
 Fixes most of PR/41992
 To generate a diff of this commit:
 cvs rdiff -u -r1.22 -r1.23 src/lib/libc/stdio/fgets.c
 cvs rdiff -u -r1.57 -r1.58 src/lib/libc/stdio/vfprintf.c
 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

Home | Main Index | Thread Index | Old Index