summaryrefslogtreecommitdiff
path: root/lib/comp/create_block.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/comp/create_block.c')
-rw-r--r--lib/comp/create_block.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/comp/create_block.c b/lib/comp/create_block.c
index e410091..90344bb 100644
--- a/lib/comp/create_block.c
+++ b/lib/comp/create_block.c
@@ -16,7 +16,7 @@
block_t *create_block(const char *filename, int fd, size_t size,
void *user, uint32_t flags)
{
- block_t *blk = calloc(1, sizeof(*blk) + size);
+ block_t *blk = alloc_flex(sizeof(*blk), 1, size);
if (blk == NULL) {
perror(filename);