diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-11-16 19:00:20 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-11-16 19:00:20 +0000 |
commit | 62d33ddaf2943cd1e6155c0af1d4a7c6d3c494e6 (patch) | |
tree | caa62868e33bb65438db22b2ec8108932f1ddfcf /libexec/telnetd/telnetd.c | |
parent | aa4345d1f34ebdabce4ba0aa5c302bce54c72da9 (diff) |
Don't use sizeof() a pointer as a length parameter. This change makes
'line' from sys_term.c from a char * into a char array. There's no
need to explicitly initialize the contents to 0 since that happens
for globals anyway.
Diffstat (limited to 'libexec/telnetd/telnetd.c')
-rw-r--r-- | libexec/telnetd/telnetd.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/telnetd/telnetd.c b/libexec/telnetd/telnetd.c index 0593ea79322..bf551d92bca 100644 --- a/libexec/telnetd/telnetd.c +++ b/libexec/telnetd/telnetd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: telnetd.c,v 1.26 2000/10/24 21:52:37 millert Exp $ */ +/* $OpenBSD: telnetd.c,v 1.27 2000/11/16 19:00:19 millert Exp $ */ /* $NetBSD: telnetd.c,v 1.6 1996/03/20 04:25:57 tls Exp $ */ /* @@ -45,7 +45,7 @@ static char copyright[] = static char sccsid[] = "@(#)telnetd.c 8.4 (Berkeley) 5/30/95"; static char rcsid[] = "$NetBSD: telnetd.c,v 1.5 1996/02/28 20:38:23 thorpej Exp $"; #else -static char rcsid[] = "$OpenBSD: telnetd.c,v 1.26 2000/10/24 21:52:37 millert Exp $"; +static char rcsid[] = "$OpenBSD: telnetd.c,v 1.27 2000/11/16 19:00:19 millert Exp $"; #endif #endif /* not lint */ @@ -817,7 +817,6 @@ doit(who) #else for (;;) { char *lp; - extern char *line, *getpty(); if ((lp = getpty()) == NULL) fatal(net, "Out of ptys"); |