From 981d4a6e4b2d1541e65fd7f63ce02585cca29601 Mon Sep 17 00:00:00 2001 From: shin Date: Sat, 19 Feb 2000 16:33:14 +0000 Subject: Use static buffer to save source route hostnames. Approved by: jkh --- crypto/telnet/telnet/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/telnet') 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); -- cgit v1.1