X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/f30baa4292317ec709c02b787945d86fce17fa7e..38ffa92e5fc5d98adc79efd7fceeb44d896bc0c3:/print-icmp.c diff --git a/print-icmp.c b/print-icmp.c index 74f327fc..124fc05d 100644 --- a/print-icmp.c +++ b/print-icmp.c @@ -866,9 +866,9 @@ icmp_print(netdissect_options *ndo, const u_char *bp, u_int plen, const u_char * offset += inft_name_length_field; break; } - ND_PRINT(", length %u", inft_name_length_field); - ND_PRINT(": %.*s", inft_name_length_field - 1, - ifname_subobj->if_name); + ND_PRINT(", length %u: ", inft_name_length_field); + nd_printjnp(ndo, ifname_subobj->if_name, + inft_name_length_field - 1); offset += inft_name_length_field; } if (mtu_flag) {