aboutsummaryrefslogtreecommitdiff
path: root/pcap-bpf.c
diff options
context:
space:
mode:
Diffstat (limited to 'pcap-bpf.c')
-rw-r--r--pcap-bpf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-bpf.c b/pcap-bpf.c
index f8d10833..27b3d287 100644
--- a/pcap-bpf.c
+++ b/pcap-bpf.c
@@ -1181,7 +1181,7 @@ pcap_read_bpf(pcap_t *p, int cnt, pcap_handler callback, u_char *user)
errno, "read");
return (PCAP_ERROR);
}
- bp = (u_char *)p->buffer;
+ bp = p->buffer;
} else
bp = p->bp;