diff options
author | sam <sam@FreeBSD.org> | 2006-01-16 20:33:23 +0000 |
---|---|---|
committer | sam <sam@FreeBSD.org> | 2006-01-16 20:33:23 +0000 |
commit | 0166ef9fb957057fe0c339993fd8c97c09911ff6 (patch) | |
tree | c28074ecc5c9089ce4e1d103e08f3363ea022986 /contrib/libpcap | |
parent | 0dbcbdbe4a9144bb7c7c9cd1d2f722d96536d61c (diff) | |
parent | bf281a32a1c59fe37a685431dd57d7e432a7f3e0 (diff) | |
download | FreeBSD-src-0166ef9fb957057fe0c339993fd8c97c09911ff6.zip FreeBSD-src-0166ef9fb957057fe0c339993fd8c97c09911ff6.tar.gz |
This commit was generated by cvs2svn to compensate for changes in r154439,
which included commits to RCS files with non-trunk default branches.
Diffstat (limited to 'contrib/libpcap')
-rw-r--r-- | contrib/libpcap/pcap-bpf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/libpcap/pcap-bpf.c b/contrib/libpcap/pcap-bpf.c index ccf9d73..4a94cda 100644 --- a/contrib/libpcap/pcap-bpf.c +++ b/contrib/libpcap/pcap-bpf.c @@ -746,7 +746,7 @@ pcap_open_live(const char *device, int snaplen, int promisc, int to_ms, u_int i; int is_ethernet; - bdl.bfl_list = (u_int *) malloc(sizeof(u_int) * bdl.bfl_len + 1); + bdl.bfl_list = (u_int *) malloc(sizeof(u_int) * (bdl.bfl_len + 1)); if (bdl.bfl_list == NULL) { (void)snprintf(ebuf, PCAP_ERRBUF_SIZE, "malloc: %s", pcap_strerror(errno)); |