summaryrefslogtreecommitdiff
path: root/graphics/graphviz/format-string.patch
blob: 1cc586739c5b0169363163784ab384711fc3137a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -Naur old/lib/cgraph/scan.l new/lib/cgraph/scan.l
--- old/lib/cgraph/scan.l	2014-04-13 10:40:25.000000000 -1000
+++ new/lib/cgraph/scan.l	2014-12-02 08:54:21.285050735 -1000
@@ -149,7 +149,7 @@
 	agxbput(&xb,buf);
 	agxbput(&xb,fname);
 	agxbput(&xb, " splits into two tokens\n");
-	agerr(AGWARN,agxbuse(&xb));
+	agerr(AGWARN, "%s", agxbuse(&xb));
 
 	agxbfree(&xb);
 	return 1;
@@ -225,7 +225,7 @@
 	agxbput (&xb, buf);
 	agxbput (&xb, yytext);
 	agxbput (&xb,"'\n");
-	agerr(AGERR,agxbuse(&xb));
+	agerr(AGERR, "%s", agxbuse(&xb));
 	agxbfree(&xb);
 }
 /* must be here to see flex's macro defns */