summaryrefslogtreecommitdiff
path: root/libexec/telnetd/ext.h
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-11-16 19:00:20 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-11-16 19:00:20 +0000
commit62d33ddaf2943cd1e6155c0af1d4a7c6d3c494e6 (patch)
treecaa62868e33bb65438db22b2ec8108932f1ddfcf /libexec/telnetd/ext.h
parentaa4345d1f34ebdabce4ba0aa5c302bce54c72da9 (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/ext.h')
-rw-r--r--libexec/telnetd/ext.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/telnetd/ext.h b/libexec/telnetd/ext.h
index 43836100773..774902fc8c8 100644
--- a/libexec/telnetd/ext.h
+++ b/libexec/telnetd/ext.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ext.h,v 1.8 1998/07/28 20:18:19 marc Exp $ */
+/* $OpenBSD: ext.h,v 1.9 2000/11/16 19:00:19 millert Exp $ */
/* $NetBSD: ext.h,v 1.6 1996/02/28 20:38:13 thorpej Exp $ */
/*
@@ -86,7 +86,7 @@ extern char *unptyip; /* pointer to remaining characters in buffer */
#endif
extern int pty, net;
-extern char *line;
+extern char line[16];
extern int SYNCHing; /* we are in TELNET SYNCH mode */
#include <sys/cdefs.h>