]> The Tcpdump Group git mirrors - libpcap/commitdiff
(pcap_open_live): remove duplicate PCAP_ERRBUF_SIZE
authorassar <assar>
Sat, 13 May 2000 13:14:41 +0000 (13:14 +0000)
committerassar <assar>
Sat, 13 May 2000 13:14:41 +0000 (13:14 +0000)
pcap-linux.c

index 7388d28ad22d46577fcec000e8b364ac0f3473d5..d762f90d29bca481442765beaa3facd0676b3fb6 100644 (file)
@@ -20,7 +20,7 @@
  */
 #ifndef lint
 static const char rcsid[] =
-    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.19 2000-05-08 23:11:02 itojun Exp $ (LBL)";
+    "@(#) $Header: /tcpdump/master/libpcap/pcap-linux.c,v 1.20 2000-05-13 13:14:41 assar Exp $ (LBL)";
 #endif
 
 #include <sys/param.h>
@@ -148,7 +148,7 @@ pcap_open_live(char *device, int snaplen, int promisc, int to_ms, char *ebuf)
 
        p = (pcap_t *)malloc(sizeof(*p));
        if (p == NULL) {
-               snprintf(ebuf, PCAP_ERRBUF_SIZE, PCAP_ERRBUF_SIZE,
+               snprintf(ebuf, PCAP_ERRBUF_SIZE,
                    "malloc: %s", pcap_strerror(errno));
                return (NULL);
        }