From 737e54e224e4bccd89b9d0d8488cd6bb50087b26 Mon Sep 17 00:00:00 2001 From: shin Date: Sat, 19 Feb 2000 16:33:14 +0000 Subject: [PATCH] Use static buffer to save source route hostnames. Approved by: jkh git-svn-id: http://svn0.us-east.freebsd.org/base/head/contrib/telnet@57343 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f --- telnet/commands.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telnet/commands.c b/telnet/commands.c index 24e5e43..0d4bd38 100644 --- a/telnet/commands.c +++ b/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);