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: Sat, 24 Oct 2009 14:50:49 +0000

 Module Name:   src
 Committed By:  dsl
 Date:          Sat Oct 24 14:50:48 UTC 2009
 Modified Files:
        src/lib/libc/stdio: fgets.c
 Log Message:
 Check for EOF before erroring fgets() with length <= 0.
 If length is invalid, set errno = EINVAL and __SERR as well returning NULL.
 Should let me close PR/41992.
 To generate a diff of this commit:
 cvs rdiff -u -r1.23 -r1.24 src/lib/libc/stdio/fgets.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