diff options
author | Guy Harris <guy@alum.mit.edu> | 2017-11-15 11:05:36 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2017-11-15 11:05:36 -0800 |
commit | 8b65b39f26e93190e353e3b8d3178054e2d05af8 (patch) | |
tree | a202699703b3b2281e0b311359b06315f614fb5b /pcap-linux.c | |
parent | 7d787482040aa327ef2345eca2e9f980ce76cc28 (diff) |
Fix a half-converted error message formatting call.
Diffstat (limited to 'pcap-linux.c')
-rw-r--r-- | pcap-linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pcap-linux.c b/pcap-linux.c index b1c7ecf4..f49ef6d5 100644 --- a/pcap-linux.c +++ b/pcap-linux.c @@ -2485,7 +2485,7 @@ scan_proc_net_dev(pcap_if_list_t *devlistp, char *errbuf) */ fd = socket(PF_UNIX, SOCK_RAW, 0); if (fd < 0) { - (void)pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE, + pcap_fmt_errmsg_for_errno(errbuf, PCAP_ERRBUF_SIZE, errno, "socket"); (void)fclose(proc_net_f); return (-1); |