From 81d113a67c960a828aaf16e5c4ab83210f420f7f Mon Sep 17 00:00:00 2001 From: Alex Smith <44322503+MadAlexUK@users.noreply.github.com> Date: Fri, 8 Mar 2019 04:30:03 +0000 Subject: Corrected copy-pasto --- sf-pcap.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sf-pcap.c') diff --git a/sf-pcap.c b/sf-pcap.c index ae6fbceb..77cc9b9d 100644 --- a/sf-pcap.c +++ b/sf-pcap.c @@ -861,14 +861,14 @@ pcap_dump_hopen(pcap_t *p, intptr_t osfd) fd = _open_osfhandle(osfd, _O_APPEND); if (fd < 0) { - pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, + pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, errno, "_open_osfhandle"); return NULL; } file = _fdopen(fd, "wb"); if (file == NULL) { - pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, + pcap_fmt_errmsg_for_errno(p->errbuf, PCAP_ERRBUF_SIZE, errno, "_fdopen"); return NULL; } -- cgit v1.2.3