diff options
-rw-r--r-- | usr.sbin/traceroute/traceroute.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/traceroute/traceroute.c b/usr.sbin/traceroute/traceroute.c index bd9d250..5c18e38 100644 --- a/usr.sbin/traceroute/traceroute.c +++ b/usr.sbin/traceroute/traceroute.c @@ -393,7 +393,7 @@ main(argc, argv) if (hp) { to->sin_family = hp->h_addrtype; bcopy(hp->h_addr, (caddr_t)&to->sin_addr, hp->h_length); - hostname = hp->h_name; + hostname = strdup(hp->h_name); } else { (void)fprintf(stderr, "traceroute: unknown host %s\n", *argv); |