HomeFreeBSD

Fix n == 1 case. Here should be no physical read (fill buffer) attempt

Description

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

Details

Provenance
acheAuthored on
Parents
rS305411: hyperv/hn: Stringent RNDIS control message length check.
Branches
Unknown
Tags
Unknown