From 85e711e54cf69e1157d27cf9a33a84c6afca4890 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 04:22:30 -0400 Subject: [PATCH] _snprintf_s() is not supported on Windows XP... --- init_windows.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/init_windows.c b/init_windows.c index e2cc1f27..bfc92a9d 100644 --- a/init_windows.c +++ b/init_windows.c @@ -19,7 +19,8 @@ static void loadLastError(uiInitError *err, const char *message) le = GetLastError(); // TODO FormatMessageW() it - _snprintf_s(err->failbuf, 256, _TRUNCATE, "error %s (last error %I32u)", message, le); + // TODO make sure argument is right; _snprintf_s() isn't supported on Windows XP + sprintf(err->failbuf, 256, "error %s (last error %I32u)", message, le); err->msg = err->failbuf; }