chart: Fix format string issues in chart_write_title callers.
[pspp-builds.git] / src / output / charts / piechart.c
index 4eeb10ca63af06f70f764477cd0865401c34a8c0..aa52f99e9d1560e7a1e95552dff4deb28f4e6e71 100644 (file)
@@ -74,7 +74,7 @@ piechart_plot(const char *title, const struct slice *slices, int n_slices)
                            );
 
 
-  chart_write_title(ch, title);
+  chart_write_title(ch, "%s", title);
 
   for (i = 0 ; i < n_slices ; ++i )
     total_magnetude += slices[i].magnetude;