chart: Fix format string issues in draw_tick callers.
[pspp-builds.git] / src / output / charts / box-whisker.c
index d4a5ccab6c2fff527e70e8ed4a55cc68f120a64e..8bcad4947eee31d63e09264daf960e0d0f8a1008 100644 (file)
@@ -1,5 +1,5 @@
 /* PSPP - a program for statistical analysis.
-   Copyright (C) 2004 Free Software Foundation, Inc.
+   Copyright (C) 2004, 2009 Free Software Foundation, Inc.
 
    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -203,7 +203,7 @@ boxplot_draw_boxplot(struct chart *ch,
 
 
   /* Draw  tick  mark on x axis */
-  draw_tick(ch, TICK_ABSCISSA, box_centre - ch->data_left, name);
+  draw_tick(ch, TICK_ABSCISSA, box_centre - ch->data_left, "%s", name);
 
   pl_restorestate_r(ch->lp);