]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix n == 1 case. Here should be no physical read (fill buffer) attempt
authorache <ache@FreeBSD.org>
Mon, 5 Sep 2016 06:10:51 +0000 (06:10 +0000)
committerache <ache@FreeBSD.org>
Mon, 5 Sep 2016 06:10:51 +0000 (06:10 +0000)
commitaaa73dff3dca317de03b2d8c75671a0940e4d1dc
tree39559df5b723a1e63df301febf1be59b214fd09d
parentac30c91cf9e40514cfe85973f9d02498611379a5
Fix n == 1 case. Here should be no physical read (fill buffer) attempt
(we read n - 1 chars with the room for NUL, see fgets()),
and no NULL return.

MFC after:      3 days
lib/libc/stdio/fgetws.c