Use legal printf format strings when logging.

This commit is contained in:
Forest
2014-09-08 02:23:45 -07:00
parent 33a9b042b2
commit 96501df3d7
2 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -807,7 +807,7 @@ Dialog::Result LuaHelpers::ReportScriptError(RString const& Error, RString Error
ScriptErrorMessage(Error);
InReportScriptError= false;
}
LOG->Warn(Error.c_str());
LOG->Warn( "%s", Error.c_str());
if(UseAbort)
{
RString with_correct= Error + " Correct this and click Retry, or Cancel to break.";