summaryrefslogtreecommitdiffstats
path: root/usr.bin/telnet
diff options
context:
space:
mode:
authorshin <shin@FreeBSD.org>2000-02-19 16:33:14 +0000
committershin <shin@FreeBSD.org>2000-02-19 16:33:14 +0000
commit981d4a6e4b2d1541e65fd7f63ce02585cca29601 (patch)
tree3da47085cb1c132f09ea0e58b62b1387807c5c70 /usr.bin/telnet
parente1b335a34c340068c8d744b46a335f8253a9bdd2 (diff)
downloadFreeBSD-src-981d4a6e4b2d1541e65fd7f63ce02585cca29601.zip
FreeBSD-src-981d4a6e4b2d1541e65fd7f63ce02585cca29601.tar.gz
Use static buffer to save source route hostnames.
Approved by: jkh
Diffstat (limited to 'usr.bin/telnet')
-rw-r--r--usr.bin/telnet/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/telnet/commands.c b/usr.bin/telnet/commands.c
index 9ff560a..0beb906 100644
--- a/usr.bin/telnet/commands.c
+++ b/usr.bin/telnet/commands.c
@@ -2331,7 +2331,7 @@ tn(argc, argv)
res0 = res;
af_again:
if (srcroute != 0) {
- char hostbuf[BUFSIZ];
+ static char hostbuf[BUFSIZ];
if (af_error == 0) { /* save intermediate hostnames for retry */
strncpy(hostbuf, hostp, BUFSIZ - 1);
OpenPOWER on IntegriCloud