diff options
author | shin <shin@FreeBSD.org> | 2000-02-19 16:33:14 +0000 |
---|---|---|
committer | shin <shin@FreeBSD.org> | 2000-02-19 16:33:14 +0000 |
commit | 981d4a6e4b2d1541e65fd7f63ce02585cca29601 (patch) | |
tree | 3da47085cb1c132f09ea0e58b62b1387807c5c70 /contrib/telnet | |
parent | e1b335a34c340068c8d744b46a335f8253a9bdd2 (diff) | |
download | FreeBSD-src-981d4a6e4b2d1541e65fd7f63ce02585cca29601.zip FreeBSD-src-981d4a6e4b2d1541e65fd7f63ce02585cca29601.tar.gz |
Use static buffer to save source route hostnames.
Approved by: jkh
Diffstat (limited to 'contrib/telnet')
-rw-r--r-- | contrib/telnet/telnet/commands.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/telnet/telnet/commands.c b/contrib/telnet/telnet/commands.c index 24e5e43..0d4bd38 100644 --- a/contrib/telnet/telnet/commands.c +++ b/contrib/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); |