Fix she::error_message() to avoid calling a printf-like function with a non-printf-format-like argument

This commit is contained in:
David Capello 2014-08-17 20:41:38 -03:00
parent 76a26802e0
commit e0a20e5385

View File

@ -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
}