]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix format string.
authorGuy Harris <[email protected]>
Thu, 13 Sep 2018 04:38:23 +0000 (21:38 -0700)
committerGuy Harris <[email protected]>
Thu, 13 Sep 2018 04:38:23 +0000 (21:38 -0700)
pcap-netfilter-linux.c

index e2cfe841a752d3263ad0e7ee80edfad42e7fbb86..4bc069b7ae6d99ad89a95e9c6c4e0274d8a61d13 100644 (file)
@@ -168,7 +168,7 @@ netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_c
                }
 
                if (nlh->nlmsg_len < sizeof(struct nlmsghdr) || (u_int)len < nlh->nlmsg_len) {
-                       pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %d) (nlmsg_len: %u)", len, nlh->nlmsg_len);
+                       pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Message truncated: (got: %zd) (nlmsg_len: %u)", len, nlh->nlmsg_len);
                        return -1;
                }