Sophie

Sophie

distrib > Mageia > 9 > x86_64 > by-pkgid > 9cd0e218c401cc897b0f5cbf392306de > files > 4

csmash-0.6.6-29.mga9.src.rpm

--- csmash-0.6.6/loadparts.cpp.format	2017-09-12 04:04:57.493295504 +0200
+++ csmash-0.6.6/loadparts.cpp	2017-09-12 04:06:47.505494400 +0200
@@ -218,7 +218,7 @@
     }
     catch (const error &e) {
 	printf("loadfile failed\n");
-	printf(e.what());
+	printf("%s", e.what());
 	return false;
     }
     return true;
@@ -534,7 +534,7 @@
 	char buf[256];
 	snprintf(buf, sizeof(buf), "texture %s cannot be realized\n",
                  filename.c_str());
-	printf(buf);
+	printf("%s", buf);
 	throw error(buf);
         return false;
     } else {