From 12021269b7789a680bf1286616505a7546f26d93 Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Tue, 7 Apr 2015 19:36:46 -0400 Subject: Fixed compiler warnings. Stack works! --- new/init_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'new/init_windows.c') diff --git a/new/init_windows.c b/new/init_windows.c index bfc92a9..7b01b1a 100644 --- a/new/init_windows.c +++ b/new/init_windows.c @@ -20,7 +20,7 @@ static void loadLastError(uiInitError *err, const char *message) le = GetLastError(); // TODO FormatMessageW() it // 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); + snprintf(err->failbuf, 256, "error %s (last error %I32u)", message, le); err->msg = err->failbuf; } -- cgit v1.2.3