From e0a20e5385c07c2ab136ec9e34111f1fd55054bb Mon Sep 17 00:00:00 2001 From: David Capello Date: Sun, 17 Aug 2014 20:41:38 -0300 Subject: [PATCH] Fix she::error_message() to avoid calling a printf-like function with a non-printf-format-like argument --- src/she/alleg4/she_alleg4.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/she/alleg4/she_alleg4.cpp b/src/she/alleg4/she_alleg4.cpp index 86110a7ce..1e00b945e 100644 --- a/src/she/alleg4/she_alleg4.cpp +++ b/src/she/alleg4/she_alleg4.cpp @@ -733,7 +733,7 @@ void error_message(const char* msg) std::wstring title = base::from_utf8(PACKAGE); ::MessageBoxW(NULL, wmsg.c_str(), title.c_str(), MB_OK | MB_ICONERROR); #else - allegro_message(msg); + allegro_message("%s", msg); #endif }