chart: Fix format string issues in chart_write_title callers.
[pspp-builds.git] / src / output / charts / piechart.c
index 869f21b2b4892e288b5cbbf8a8b43581fd4366b5..97910010c69101d16c21f607cc13a369aad0f3b7 100644 (file)
@@ -69,7 +69,7 @@ piechart_plot(const char *title, const struct slice *slices, int n_slices)
   double angle;
 
 
-  chart_write_title(ch, title);
+  chart_write_title(ch, "%s", title);
 
   for (i = 0 ; i < n_slices ; ++i )
     total_magnitude += slices[i].magnitude;