Fixed some calls to xcalloc where the quantity and size parameters had been transposed.
[pspp] / src / math / categoricals.c
index eb28cb42bf50c5601f057c7b7930db63ff2aa9f2..7e949fc71804a34b9881b25ba84902696936f20f 100644 (file)
@@ -480,7 +480,7 @@ categoricals_done (const struct categoricals *cat_)
           return;
         }
 
-      struct value_node **nodes = xcalloc (sizeof *nodes, n_vals);
+      struct value_node **nodes = xcalloc (n_vals, sizeof *nodes);
       int x = 0;
       struct value_node *valnd;
       HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)