summaryrefslogtreecommitdiffstats
path: root/reftable/publicbasics.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--reftable/publicbasics.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/reftable/publicbasics.c b/reftable/publicbasics.c
index bcb8253..44b84a1 100644
--- a/reftable/publicbasics.c
+++ b/reftable/publicbasics.c
@@ -37,8 +37,9 @@ void reftable_free(void *p)
free(p);
}
-void *reftable_calloc(size_t sz)
+void *reftable_calloc(size_t nelem, size_t elsize)
{
+ size_t sz = st_mult(nelem, elsize);
void *p = reftable_malloc(sz);
memset(p, 0, sz);
return p;