summaryrefslogtreecommitdiffstats
path: root/crypto/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 /crypto/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 'crypto/telnet')
-rw-r--r--crypto/telnet/telnet/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/telnet/telnet/commands.c b/crypto/telnet/telnet/commands.c
index 24e5e43..0d4bd38 100644
--- a/crypto/telnet/telnet/commands.c
+++ b/crypto/telnet/telnet/commands.c
@@ -2507,7 +2507,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