From 4c7e3b0da814c143e1154a2524e9358a1e6828c8 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Dec 09 2020 20:26:18 +0000 Subject: Apply patch libsmi-0.4.8-format-security-fix.patch patch_name: libsmi-0.4.8-format-security-fix.patch present_in_specfile: true --- diff --git a/tools/dump-tree.c b/tools/dump-tree.c index 3db2265..4c1950f 100644 --- a/tools/dump-tree.c +++ b/tools/dump-tree.c @@ -117,7 +117,7 @@ static void fprintIndex(FILE *f, SmiNode *smiNode) smiElement; smiElement = smiGetNextElement(smiElement), i++) { if (i > 0) fprintf(f, ","); if (indexname) { - fprintf(f, indexname); + fprintf(f, "%s", indexname); } indexname = smiGetElementNode(smiElement)->name; } @@ -143,7 +143,7 @@ static void fprintObjects(FILE *f, SmiNode *smiNode) smiElement = smiGetNextElement(smiElement), i++) { if (i > 0) fprintf(f, ","); if (objectname) { - fprintf(f, objectname); + fprintf(f, "%s", objectname); } objectname = smiGetElementNode(smiElement)->name; }