summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fstree/fstree_from_dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/fstree/fstree_from_dir.c b/lib/fstree/fstree_from_dir.c
index ea1ebe9..ff9f078 100644
--- a/lib/fstree/fstree_from_dir.c
+++ b/lib/fstree/fstree_from_dir.c
@@ -78,7 +78,7 @@ static int populate_dir(fstree_t *fs, tree_node_t *root)
}
if (S_ISLNK(sb.st_mode)) {
- extra = alloca(sb.st_size + 1);
+ extra = calloc(1, sb.st_size + 1);
if (extra == NULL)
goto fail_rdlink;