]> The Tcpdump Group git mirrors - libpcap/commitdiff
Fix a message-formatting call.
authorGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:53:11 +0000 (09:53 -0700)
committerGuy Harris <[email protected]>
Sat, 15 Sep 2018 16:53:11 +0000 (09:53 -0700)
pcap.c

diff --git a/pcap.c b/pcap.c
index 394a5e40743d51394fe3fa7f4c34e75e5aebaaf9..77f46ae6b9b7dce877957a7c20c5e0018b7702e0 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -3685,7 +3685,7 @@ pcap_inject(pcap_t *p, const void *buf, size_t size)
 
        if (size == 0) {
                pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE,
-                   errno, "The number of bytes to be injected must not be zero", INT_MAX);
+                   errno, "The number of bytes to be injected must not be zero");
                return (PCAP_ERROR);
        }