projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed some calls to xcalloc where the quantity and size parameters had been transposed.
[pspp]
/
src
/
math
/
categoricals.c
diff --git
a/src/math/categoricals.c
b/src/math/categoricals.c
index eb28cb42bf50c5601f057c7b7930db63ff2aa9f2..7e949fc71804a34b9881b25ba84902696936f20f 100644
(file)
--- a/
src/math/categoricals.c
+++ b/
src/math/categoricals.c
@@
-480,7
+480,7
@@
categoricals_done (const struct categoricals *cat_)
return;
}
- struct value_node **nodes = xcalloc (
sizeof *nodes, n_val
s);
+ struct value_node **nodes = xcalloc (
n_vals, sizeof *node
s);
int x = 0;
struct value_node *valnd;
HMAP_FOR_EACH (valnd, struct value_node, node, &vn->valmap)