aboutsummaryrefslogtreecommitdiff
path: root/lib/util/alloc.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/alloc.c')
-rw-r--r--lib/util/alloc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util/alloc.c b/lib/util/alloc.c
index 8e1c4f1..eda0e63 100644
--- a/lib/util/alloc.c
+++ b/lib/util/alloc.c
@@ -46,5 +46,5 @@ void *alloc_string(size_t len)
return NULL;
}
- return calloc(1, len);
+ return calloc(1, size);
}