summaryrefslogtreecommitdiffstats
path: root/libexec
diff options
context:
space:
mode:
authormarkm <markm@FreeBSD.org>2001-04-29 09:03:52 +0000
committermarkm <markm@FreeBSD.org>2001-04-29 09:03:52 +0000
commit8030ab2f5119fe2a9aa58d7740db2fae06bcde1d (patch)
treef7b9fa5577592354f58ad3187b74a51d06bfc079 /libexec
parent845d0122113ecb4c89459831d6e7a4e72f2f6b8c (diff)
downloadFreeBSD-src-8030ab2f5119fe2a9aa58d7740db2fae06bcde1d.zip
FreeBSD-src-8030ab2f5119fe2a9aa58d7740db2fae06bcde1d.tar.gz
Grrr. Fix a line that was fatfingered out during the cleanup.
Submitted by: bde Pointy hat: markm
Diffstat (limited to 'libexec')
-rw-r--r--libexec/rshd/rshd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libexec/rshd/rshd.c b/libexec/rshd/rshd.c
index cea958d..6e09227 100644
--- a/libexec/rshd/rshd.c
+++ b/libexec/rshd/rshd.c
@@ -721,6 +721,7 @@ getstr(buf, cnt, err)
if (read(STDIN_FILENO, &c, 1) != 1)
exit(1);
*buf++ = c;
+ if (--cnt == 0)
errx(1, "%s too long", err);
} while (c != 0);
}
OpenPOWER on IntegriCloud