diff options
author | Alex Smith <44322503+MadAlexUK@users.noreply.github.com> | 2019-03-08 04:30:03 +0000 |
---|---|---|
committer | Alex Smith <44322503+MadAlexUK@users.noreply.github.com> | 2019-03-08 04:30:03 +0000 |
commit | 81d113a67c960a828aaf16e5c4ab83210f420f7f (patch) | |
tree | 3a61ccc0a47c621396a3839e79e9f568bd74545e /sf-pcap.c | |
parent | 2567412b81cba0dc3bf3825c453ed3c2552f357c (diff) |
Corrected copy-pasto
Diffstat (limited to 'sf-pcap.c')
-rw-r--r-- | sf-pcap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |