From f66a052a0508ccc5c0011fb3521866dafb2afc59 Mon Sep 17 00:00:00 2001 From: Selva Nair Date: Sun, 17 Mar 2019 13:41:03 -0400 Subject: [PATCH] Delete extra arg to swprintf() in format_bytecount() Found by cppcheck Signed-off-by: Selva Nair --- openvpn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvpn.c b/openvpn.c index 9debf24..4582441 100644 --- a/openvpn.c +++ b/openvpn.c @@ -1196,7 +1196,7 @@ format_bytecount(wchar_t *buf, size_t len, unsigned long long c) if (c <= 1024) { - swprintf(buf, len, L"%I64u B", c, *s); + swprintf(buf, len, L"%I64u B", c); buf[len-1] = L'\0'; return buf; }