X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ba8936b39b0ce2ff02f3aeb307df4c27657652d8..b5fbb1f40aa51e0f40c7d7cf3b6ee88ec41e2981:/print-null.c diff --git a/print-null.c b/print-null.c index e7daacd4..f730a23f 100644 --- a/print-null.c +++ b/print-null.c @@ -86,7 +86,7 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char goto trunc; ND_TCHECK_4(p); - memcpy((char *)&family, (const char *)p, sizeof(family)); + family = GET_HE_U_4(p); /* * This isn't necessarily in our host byte order; if this is