Skip to content

Commit

Permalink
#398 correct debug message
Browse files Browse the repository at this point in the history
  • Loading branch information
fklassen committed Jan 25, 2018
1 parent 871842b commit 61e6300
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common/tcpdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 61e6300

Please sign in to comment.