var_append_value_name (fctr->indep_var[0], &result->value[0], &title);
#endif
- chart_write_title (ch, ds_cstr (&title));
+ chart_write_title (ch, "%s", ds_cstr (&title));
ds_destroy (&title);
for (v = 0; v < n_dep_var; ++v)
/* 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
pl_restorestate_r(ch->lp);
- chart_write_title(ch, title);
+ chart_write_title(ch, "%s", title);
write_legend(ch);
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;
/* 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
#include <math/chart-geometry.h>
#include <output/chart.h>
+#include <libpspp/compiler.h>
#include <libpspp/str.h>
#include <output/manager.h>
#include <output/output.h>
/* Write the title on a chart*/
-void chart_write_title(struct chart *chart, const char *title, ...);
+void chart_write_title(struct chart *chart, const char *title, ...)
+ PRINTF_FORMAT (2, 3);
/* Set the scale for the abscissa */