]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
Merge pull request #760 from leres/master
[tcpdump] / print-null.c
index e7daacd42b86a265b4346d1193569421a72f0b64..f730a23f405f96cbd6d54dc9995958fc877504ce 100644 (file)
@@ -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