aboutsummaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2001-04-29 09:03:52 +0000
committerMark Murray <markm@FreeBSD.org>2001-04-29 09:03:52 +0000
commitc0264d438b1476a9f39768304e28b8fb8b81f283 (patch)
tree66136ae7efcf3fa5ee26d709035c039d7556ad67 /libexec
parent47a30121232db407f84d4a4c671f94dca6ad5cfd (diff)
Notes
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 cea958d6aa3db..6e09227d255cc 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);
}