aboutsummaryrefslogtreecommitdiff
path: root/src/util.cff
diff options
context:
space:
mode:
Diffstat (limited to 'src/util.cff')
-rw-r--r--src/util.cff2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util.cff b/src/util.cff
index 926b1e4..18305b2 100644
--- a/src/util.cff
+++ b/src/util.cff
@@ -8,7 +8,7 @@ extern fn xmalloc(n usize) *void {
}
extern fn xcalloc(n usize, m usize) *void {
- let p = calloc(n, n);
+ let p = calloc(n, m);
assert(p != #null, "calloc");
return p;
}