]> The Tcpdump Group git mirrors - libpcap/commitdiff
NPF: fix wrong variable name.
authorGuy Harris <[email protected]>
Sat, 6 Nov 2021 22:28:30 +0000 (15:28 -0700)
committerGuy Harris <[email protected]>
Sun, 7 Nov 2021 00:06:13 +0000 (17:06 -0700)
(cherry picked from commit 63a3ba3ca4ab196b7996324fbfdaa72d0a500ead)

pcap-npf.c

index 6f419a47d29eaf19dfd7119394d1f0c5af1ee4e1..93be96204fda7b6668b302d1fb2d0813aa9eaf1a 100644 (file)
@@ -1593,7 +1593,7 @@ pcap_create_interface(const char *device _U_, char *ebuf)
                                         * and re-installing it, to flush
                                         * out all older drivers.
                                         */
-                                       snprintf(errbuf, PCAP_ERRBUF_SIZE,
+                                       snprintf(ebuf, PCAP_ERRBUF_SIZE,
                                            "PacketGetTimestampModes() failed with ERROR_INVALID_FUNCTION; try uninstalling Npcap, and WinPcap if installed, and re-installing it from npcap.org");
                                        pcap_close(p);
                                        return (NULL);