From 8b65b39f26e93190e353e3b8d3178054e2d05af8 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 15 Nov 2017 11:05:36 -0800 Subject: Fix a half-converted error message formatting call. --- pcap-linux.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pcap-linux.c') 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); -- cgit v1.2.3