diff options
Diffstat (limited to 'sf-pcapng.c')
-rw-r--r-- | sf-pcapng.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sf-pcapng.c b/sf-pcapng.c index 24eb5f73..f7f413d3 100644 --- a/sf-pcapng.c +++ b/sf-pcapng.c @@ -876,7 +876,7 @@ pcap_ng_check_header(const uint8_t *magic, FILE *fp, u_int precision, * OK, this is a good pcapng file. * Allocate a pcap_t for it. */ - p = pcap_open_offline_common(errbuf, sizeof (struct pcap_ng_sf)); + p = PCAP_OPEN_OFFLINE_COMMON(errbuf, struct pcap_ng_sf); if (p == NULL) { /* Allocation failed. */ *err = 1; |