Blame SOURCES/libsmi-0.4.8-format-security-fix.patch

44ae12
diff -up libsmi-0.4.8/tools/dump-tree.c.format-security libsmi-0.4.8/tools/dump-tree.c
44ae12
--- libsmi-0.4.8/tools/dump-tree.c.format-security	2013-12-03 13:57:07.138165398 -0500
44ae12
+++ libsmi-0.4.8/tools/dump-tree.c	2013-12-03 13:57:29.024137637 -0500
44ae12
@@ -117,7 +117,7 @@ static void fprintIndex(FILE *f, SmiNode
44ae12
 	 smiElement; smiElement = smiGetNextElement(smiElement), i++) {
44ae12
 	if (i > 0) fprintf(f, ",");
44ae12
 	if (indexname) {
44ae12
-	    fprintf(f, indexname);
44ae12
+	    fprintf(f, "%s", indexname);
44ae12
 	}
44ae12
 	indexname = smiGetElementNode(smiElement)->name;
44ae12
     }
44ae12
@@ -143,7 +143,7 @@ static void fprintObjects(FILE *f, SmiNo
44ae12
 	 smiElement = smiGetNextElement(smiElement), i++) {
44ae12
 	if (i > 0) fprintf(f, ",");
44ae12
 	if (objectname) {
44ae12
-	    fprintf(f, objectname);
44ae12
+	    fprintf(f, "%s", objectname);
44ae12
 	}
44ae12
 	objectname = smiGetElementNode(smiElement)->name;
44ae12
     }