summaryrefslogtreecommitdiff
path: root/sockutils.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2019-01-09 09:26:39 -0800
committerGuy Harris <guy@alum.mit.edu>2019-01-09 09:26:39 -0800
commit763331f19b06c05f32253519f32cf93e9c520ca9 (patch)
tree6ce5640bc1bffba0862c43929088aade6429c085 /sockutils.c
parent48cedbae66803b393fd98fecf0d801a4963f45d0 (diff)
downloadlibpcap-763331f19b06c05f32253519f32cf93e9c520ca9.tar.gz
Remove extra argument to a format string.
pcap_win32_err_to_str() already puts the error code into the string.
Diffstat (limited to 'sockutils.c')
-rw-r--r--sockutils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sockutils.c b/sockutils.c
index 02d9a55c..f694902a 100644
--- a/sockutils.c
+++ b/sockutils.c
@@ -134,9 +134,9 @@ void sock_fmterror(const char *caller, int errcode, char *errbuf, int errbuflen)
pcap_win32_err_to_str(errcode, message);
if ((caller) && (*caller))
- pcap_snprintf(errbuf, errbuflen, "%s%s", caller, message, errcode);
+ pcap_snprintf(errbuf, errbuflen, "%s%s", caller, message);
else
- pcap_snprintf(errbuf, errbuflen, "%s", message, errcode);
+ pcap_snprintf(errbuf, errbuflen, "%s", message);
#else
char *message;