From 74ad91245f8257e242cf5b5b6b809f94321f197a Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Fri, 4 Jun 2021 10:12:06 +0200 Subject: [PATCH] axfer: fix wrong calloc() item size in allocate_containers() Signed-off-by: Jaroslav Kysela --- axfer/subcmd-transfer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/axfer/subcmd-transfer.c b/axfer/subcmd-transfer.c index 27d2cc5..839215a 100644 --- a/axfer/subcmd-transfer.c +++ b/axfer/subcmd-transfer.c @@ -155,7 +155,7 @@ static int allocate_containers(struct context *ctx, unsigned int count) return -ENOMEM; ctx->cntr_count = count; - ctx->cntr_fds = calloc(count, sizeof(*ctx->cntrs)); + ctx->cntr_fds = calloc(count, sizeof(*ctx->cntr_fds)); if (ctx->cntr_fds == NULL) return -ENOMEM; -- 2.47.1