diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-14 17:41:56 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2003-04-14 17:41:56 +0000 |
commit | e1fb6fa38be3079e3ffc548acead593f9a3b444c (patch) | |
tree | fe32a900ee7bef9f7bd80917d14c5e2f54201bc1 /libexec/telnetd/global.c | |
parent | 7aa20daaa39223d065c65ab236958b5c843f1668 (diff) |
Change terminalname from a pointer to an array. Why people hide
the actual storage array as a static inside a function is beyond
me. By exposing the real array we can use sizeof on it for strlcpy.
deraadt@ OK
Diffstat (limited to 'libexec/telnetd/global.c')
-rw-r--r-- | libexec/telnetd/global.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libexec/telnetd/global.c b/libexec/telnetd/global.c index a783070741d..5004c008a2c 100644 --- a/libexec/telnetd/global.c +++ b/libexec/telnetd/global.c @@ -53,7 +53,7 @@ int diagnostic; /* telnet diagnostic capabilities */ slcfun slctab[NSLC + 1]; /* slc mapping table */ -char *terminaltype; +char terminaltype[41]; /* * I/O data buffers, pointers, and counters. |