diff --git a/source/glest_game/ai/ai_interface.cpp b/source/glest_game/ai/ai_interface.cpp index 687c456a9..51d7beeab 100644 --- a/source/glest_game/ai/ai_interface.cpp +++ b/source/glest_game/ai/ai_interface.cpp @@ -590,7 +590,7 @@ namespace unit->getFullName(false).c_str(), unit->getDesc(false).c_str(), unit->getFaction()->getIndex()); - printf(szBuf); + printf("%s", szBuf); if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem). enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n", @@ -678,7 +678,7 @@ namespace unit->getFullName(false).c_str(), unit->getDesc(false).c_str(), unit->getFaction()->getIndex()); - printf(szBuf); + printf("%s", szBuf); if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem). enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n", @@ -765,7 +765,7 @@ namespace unit->getFullName(false).c_str(), unit->getDesc(false).c_str(), unit->getFaction()->getIndex()); - printf(szBuf); + printf("%s", szBuf); if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem). enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n", @@ -854,7 +854,7 @@ namespace unit->getFullName(false).c_str(), unit->getDesc(false).c_str(), unit->getFaction()->getIndex()); - printf(szBuf); + printf("%s", szBuf); if (SystemFlags::getSystemSettingType(SystemFlags::debugSystem). enabled) SystemFlags::OutputDebug(SystemFlags::debugSystem, "%s\n", diff --git a/source/glest_game/world/unit_updater.cpp b/source/glest_game/world/unit_updater.cpp index 5b13d13f2..4a5838e0a 100644 --- a/source/glest_game/world/unit_updater.cpp +++ b/source/glest_game/world/unit_updater.cpp @@ -1161,7 +1161,7 @@ namespace Glest { builtUnit->create(); if (builtUnitType->hasSkillClass(scBeBuilt) == false) { - printf((string("Unit [") + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].").c_str()); + printf("%s", (string("Unit [") + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "].").c_str()); //throw megaglest_runtime_error("Unit [" + builtUnitType->getName(false) + "] has no be_built skill, producer was [" + intToStr(unit->getId()) + " - " + unit->getType()->getName(false) + "]."); return; }