summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 22:34:23 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-05 22:34:23 +0200
commit21592d1444270d3f2ae1c76e61e39185a5a05d8d (patch)
tree8b0aedf7c1f0a8d902300ec6eca08515b4d8e524 /lib
parent4fadfa6a63feae543c11e351783f50bb84ea0df5 (diff)
Fix "safe" string allocation wrapper
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib')
-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);
}