From 9eccea2d5ed43e3e25f0959c8d2cd1f0df4392a0 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sat, 25 Nov 2017 12:00:14 -0800 Subject: [PATCH] Windows: Fix error formatting with % signs. --- Common/Misc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Common/Misc.cpp b/Common/Misc.cpp index 73307cdbb8..460b64c3ee 100644 --- a/Common/Misc.cpp +++ b/Common/Misc.cpp @@ -50,7 +50,7 @@ const char *GetStringErrorMsg(int errCode) { err_strw, buff_size, NULL); static __declspec(thread) char err_str[buff_size] = {}; - snprintf(err_str, buff_size, ConvertWStringToUTF8(err_strw).c_str()); + snprintf(err_str, buff_size, "%s", ConvertWStringToUTF8(err_strw).c_str()); #else static __thread char err_str[buff_size] = {};