diff options
author | Brian S. Dean <bsd@FreeBSD.org> | 2000-03-16 22:58:34 +0000 |
---|---|---|
committer | Brian S. Dean <bsd@FreeBSD.org> | 2000-03-16 22:58:34 +0000 |
commit | 9c8e9b4a1440928388267c9c8895397fbe499b99 (patch) | |
tree | fc899359e501fcc350667338973d10d8d017900b /lib/libc | |
parent | bd79f8422fe5933118efe287883bf359bcfad695 (diff) |
Notes
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/rcmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index 5bbef4bb4a85d..af8fc30311330 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -562,7 +562,7 @@ __ivaliduser_af(hostf, raddr, luser, ruser, af, len) while (fgets(buf, sizeof(buf), hostf)) { p = buf; /* Skip lines that are too long. */ - if (strchr(p, '\n') == NULL) { + if (strchr(p, '\n') == NULL && !feof(hostf)) { while ((ch = getc(hostf)) != '\n' && ch != EOF); continue; } |