]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-null.c
Merge branch 'master' of github.com:the-tcpdump-group/tcpdump
[tcpdump] / print-null.c
index 8801e7b7ab330c970e5c7c852798380612767026..b6fdf9f80a0dc3c4b9d2312e06d7d3aeaadd9cd3 100644 (file)
@@ -82,7 +82,7 @@ null_if_print(netdissect_options *ndo, const struct pcap_pkthdr *h, const u_char
                return (NULL_HDRLEN);
        }
 
-       memcpy((char *)&family, (char *)p, sizeof(family));
+       memcpy((char *)&family, (const char *)p, sizeof(family));
 
        /*
         * This isn't necessarily in our host byte order; if this is