From: assar Date: Sat, 13 May 2000 13:14:41 +0000 (+0000) Subject: (pcap_open_live): remove duplicate PCAP_ERRBUF_SIZE X-Git-Tag: libpcap-0.6.1~165 X-Git-Url: https://git.tcpdump.org/libpcap/commitdiff_plain/742c75ef83b044416b98b7a4bffb35160d459bcd (pcap_open_live): remove duplicate PCAP_ERRBUF_SIZE --- diff --git a/pcap-linux.c b/pcap-linux.c index 7388d28a..d762f90d 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -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 @@ -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); }