From: Jaroslav Kysela Date: Fri, 4 Jun 2021 08:12:06 +0000 (+0200) Subject: axfer: fix wrong calloc() item size in allocate_containers() X-Git-Tag: v1.2.5.1~8 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=74ad91245f8257e242cf5b5b6b809f94321f197a;p=alsa-utils.git axfer: fix wrong calloc() item size in allocate_containers() Signed-off-by: Jaroslav Kysela --- 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;