diff options
Diffstat (limited to 'networking/ping.c')
-rw-r--r-- | networking/ping.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/ping.c b/networking/ping.c index 127474ccc..d1a413dd3 100644 --- a/networking/ping.c +++ b/networking/ping.c | |||
@@ -664,7 +664,7 @@ static void ping(len_and_sockaddr *lsa) | |||
664 | printf("PING %s (%s)", hostname, dotted); | 664 | printf("PING %s (%s)", hostname, dotted); |
665 | if (source_lsa) { | 665 | if (source_lsa) { |
666 | printf(" from %s", | 666 | printf(" from %s", |
667 | xmalloc_sockaddr2dotted_noport(&source_lsa->sa, source_lsa->len)); | 667 | xmalloc_sockaddr2dotted_noport(&source_lsa->sa)); |
668 | } | 668 | } |
669 | printf(": %d data bytes\n", datalen); | 669 | printf(": %d data bytes\n", datalen); |
670 | 670 | ||
@@ -715,7 +715,7 @@ int ping_main(int argc, char **argv) | |||
715 | /* leaking it here... */ | 715 | /* leaking it here... */ |
716 | source_lsa = NULL; | 716 | source_lsa = NULL; |
717 | 717 | ||
718 | dotted = xmalloc_sockaddr2dotted_noport(&lsa->sa, lsa->len); | 718 | dotted = xmalloc_sockaddr2dotted_noport(&lsa->sa); |
719 | ping(lsa); | 719 | ping(lsa); |
720 | pingstats(0); | 720 | pingstats(0); |
721 | return EXIT_SUCCESS; | 721 | return EXIT_SUCCESS; |