mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-25 11:37:56 +00:00
'c' cannot be -1.
Submitted by: stefanf
This commit is contained in:
parent
f627315f1e
commit
6513f57682
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=141207
@ -43,7 +43,6 @@ gets(char *cp, size_t size, int visible)
|
||||
for (;;) {
|
||||
c = cngetc() & 0177;
|
||||
switch (c) {
|
||||
case -1:
|
||||
case '\n':
|
||||
case '\r':
|
||||
*lp = '\0';
|
||||
|
Loading…
Reference in New Issue
Block a user