diff options
-rw-r--r-- | CREDITS | 1 | ||||
-rw-r--r-- | savefile.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -74,6 +74,7 @@ Additional people who have contributed patches: Marcus Felipe Pereira <marcus at task dot com dot br> Mark C. Brown <mbrown at hp dot com> Mark Pizzolato <List-tcpdump-workers at subscriptions dot pizzolato dot net> + Markus Mayer <markus_mayer at sourceforge dot net> Martin Husemann <martin at netbsd dot org> Matthew Luckie <mjl at luckie dot org dot nz> Max Laier <max at love2party dot net> @@ -1748,7 +1748,7 @@ pcap_dump_open(pcap_t *p, const char *fname) if (linktype == -1) { snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "%s: link-layer type %d isn't supported in savefiles", - fname, linktype); + fname, p->linktype); return (NULL); } linktype |= p->linktype_ext; @@ -1783,7 +1783,7 @@ pcap_dump_fopen(pcap_t *p, FILE *f) if (linktype == -1) { snprintf(p->errbuf, PCAP_ERRBUF_SIZE, "stream: link-layer type %d isn't supported in savefiles", - linktype); + p->linktype); return (NULL); } linktype |= p->linktype_ext; |