diff options
Diffstat (limited to 'tar/sqfs2tar.c')
-rw-r--r-- | tar/sqfs2tar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tar/sqfs2tar.c b/tar/sqfs2tar.c index 59e9703..fbdb016 100644 --- a/tar/sqfs2tar.c +++ b/tar/sqfs2tar.c @@ -187,7 +187,7 @@ static tar_xattr_t *gen_xattr_list(fstree_t *fs, tree_xattr_t *xattr) tar_xattr_t *list; size_t i; - list = malloc(sizeof(list[0]) * xattr->num_attr); + list = alloc_array(sizeof(list[0]), xattr->num_attr); if (list == NULL) { perror("creating xattr list"); return NULL; |