]> git.alsa-project.org Git - alsa-utils.git/commitdiff
axfer: fix wrong calloc() item size in allocate_containers()
authorJaroslav Kysela <perex@perex.cz>
Fri, 4 Jun 2021 08:12:06 +0000 (10:12 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 4 Jun 2021 08:12:06 +0000 (10:12 +0200)
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
axfer/subcmd-transfer.c

index 27d2cc5bced375c5c119135628380ecf4c719e5d..839215a83477db76c9dce1256f8a7d75c8b144d6 100644 (file)
@@ -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;