]> The Tcpdump Group git mirrors - libpcap/commitdiff
Needs to be 'pcap_snprintf('.
authorGisle Vanem <[email protected]>
Mon, 13 Mar 2017 23:14:13 +0000 (23:14 +0000)
committerGisle Vanem <[email protected]>
Mon, 13 Mar 2017 23:14:13 +0000 (23:14 +0000)
pcap.c

diff --git a/pcap.c b/pcap.c
index 14fd2b39b80022472f0d378bc79cc987365eebe0..97fa5dc4fd280cdd8e78436e61a1bf65f52e1827 100644 (file)
--- a/pcap.c
+++ b/pcap.c
@@ -1610,7 +1610,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, char *er
                    NULL, errbuf));
        }
        if (srctype == PCAP_SRC_FILE) {
-               snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown URL scheme \"file\"");
+               pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, "unknown URL scheme \"file\"");
                return (NULL);
        }
        if (srctype == PCAP_SRC_IFLOCAL) {