summaryrefslogtreecommitdiffstats
path: root/libexec/telnetd/telnetd.c
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2000-11-19 10:01:27 +0000
committerkris <kris@FreeBSD.org>2000-11-19 10:01:27 +0000
commitb9600b6040035f681b83eda8979335c946311ee1 (patch)
treef493a515cd0893d16ff0a83b02000608877bc9ce /libexec/telnetd/telnetd.c
parentf265931038bd5d4784d95756bac9482fea5c237a (diff)
downloadFreeBSD-src-b9600b6040035f681b83eda8979335c946311ee1.zip
FreeBSD-src-b9600b6040035f681b83eda8979335c946311ee1.tar.gz
Don't use sizeof() on a pointer when we really wanted to measure
the length of the array. Noticed by: Christos Zoulas <christos@ZOULAS.COM> Obtained from: OpenBSD
Diffstat (limited to 'libexec/telnetd/telnetd.c')
-rw-r--r--libexec/telnetd/telnetd.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c
index 9158dfb..7216cf7 100644
--- a/libexec/telnetd/telnetd.c
+++ b/libexec/telnetd/telnetd.c
@@ -805,7 +805,6 @@ doit(who)
#else
for (;;) {
char *lp;
- extern char *line, *getpty();
if ((lp = getpty()) == NULL)
fatal(net, "Out of ptys");
OpenPOWER on IntegriCloud