diff --git a/src/common/tcpdump.c b/src/common/tcpdump.c index 06b843bfb..224838318 100644 --- a/src/common/tcpdump.c +++ b/src/common/tcpdump.c @@ -122,8 +122,8 @@ tcpdump_print(tcpdump_t *tcpdump, struct pcap_pkthdr *pkthdr, const u_char *data #ifdef DEBUG if (debug >= 5) { - if (write(tcpdump->debugfd, (char *)&actual_pkthdr, sizeof(actual_pkthdr) - != sizeof(actual_pkthdr))) + if (write(tcpdump->debugfd, (char *)&actual_pkthdr, sizeof(actual_pkthdr)) + != sizeof(actual_pkthdr)) errx(-1, "Error writing pcap file header to tcpdump debug\n%s", strerror(errno)); } #endif