diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 23:36:55 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2019-09-28 23:36:55 +0200 |
commit | aae81fd483b70c24ade4f1a26c7de39051ab7995 (patch) | |
tree | acdd753937a012108f0cde4236cc02884d81b957 /mkfs | |
parent | d758950ac88c2c6759d1616ac8be2c70c9dcf761 (diff) |
Cleanup: remove string allocation helper function
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'mkfs')
-rw-r--r-- | mkfs/dirscan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mkfs/dirscan.c b/mkfs/dirscan.c index e33e6f7..6d6b745 100644 --- a/mkfs/dirscan.c +++ b/mkfs/dirscan.c @@ -150,7 +150,7 @@ static int populate_dir(fstree_t *fs, tree_node_t *root, dev_t devstart, continue; if (S_ISLNK(sb.st_mode)) { - extra = alloc_string(sb.st_size); + extra = calloc(1, sb.st_size + 1); if (extra == NULL) goto fail_rdlink; |