Переглянути джерело

Fixed "printf format not a literal error" in build.

Marc-Antoine Lortie 5 роки тому
батько
коміт
a328c18286
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      tools/assimp_cmd/WriteDumb.cpp

+ 1 - 1
tools/assimp_cmd/WriteDumb.cpp

@@ -750,7 +750,7 @@ int Assimp_Dump (const char* const* params, unsigned int num)
 				scene, shortened, compressed);
 		}
 		catch (const std::exception& e) {
-			printf(("assimp dump: " + std::string(e.what())).c_str());
+			printf("%s", ("assimp dump: " + std::string(e.what())).c_str());
 			return AssimpCmdError::ExceptionWasRaised;
 		}
 		catch (...) {