fix crash when invalid options contain %

This commit is contained in:
Glenn Maynard
2005-05-02 19:34:31 +00:00
parent 973172109d
commit 633aa6f779
+1 -1
View File
@@ -324,7 +324,7 @@ void PlayerOptions::FromString( CString sOptions, bool bWarnOnInvalid )
if( bWarnOnInvalid )
{
CString sWarning = ssprintf( "The options string '%s' contains an invalid mod name '%s'", sOptions.c_str(), sBit.c_str() );
LOG->Warn( sWarning );
LOG->Warn( "%s", sWarning.c_str() );
Dialog::OK( sWarning, "INVALID_PLAYER_OPTION_WANRING" );
}
}