Fix incorrectly ordered arguments to xcalloc
[pspp-builds.git] / src / language / stats / sign.c
index 0048eb3e5a810ee867cc485008ab5b9151fb3111..e208ce9d9e2dc6d6d781c297a21360a314405103 100644 (file)
@@ -174,7 +174,7 @@ sign_execute (const struct dataset *ds,
   const struct two_sample_test *t2s = UP_CAST (test, const struct two_sample_test, parent);
   struct ccase *c;
 
-  struct sign_test_params *stp = xcalloc (sizeof *stp, t2s->n_pairs);
+  struct sign_test_params *stp = xcalloc (t2s->n_pairs, sizeof *stp);
 
   struct casereader *r = input;