X-Git-Url: https://git.tcpdump.org/tcpdump/blobdiff_plain/ba8936b39b0ce2ff02f3aeb307df4c27657652d8..e2f14ebc87586ecad6901c09a1cb7e371baf2ea1:/print-null.c?ds=inline 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