Avoid declaring variables in the middle of a block, to avoid requiring C99.
[pspp-builds.git] / src / language / stats / mcnemar.c
index 53e9a52f526041b91fbf5621478fcd8f502a7927..4f64bbb492dba7ad9748b137e16f5266fe36113b 100644 (file)
@@ -82,7 +82,7 @@ mcnemar_execute (const struct dataset *ds,
   
   struct casereader *r = input;
 
-  struct mcnemar *mc = xcalloc (sizeof *mc, t2s->n_pairs);
+  struct mcnemar *mc = xcalloc (t2s->n_pairs, sizeof *mc);
 
   for (i = 0 ; i < t2s->n_pairs; ++i )
     {
@@ -184,7 +184,7 @@ output_freq_table (variable_pair *vp,
   ds_put_cstr (&pair_name, " & ");
   ds_put_cstr (&pair_name, var_to_string ((*vp)[1]));
 
-  tab_title (table, ds_cstr (&pair_name));
+  tab_title (table, "%s", ds_cstr (&pair_name));
 
   ds_destroy (&pair_name);