From af557228304242375c81c83172c4375fb2ba0233 Mon Sep 17 00:00:00 2001 From: Thomas Schmitt Date: Sat, 10 Oct 2015 16:34:29 +0200 Subject: [PATCH] Corrected allocation size of a pointer array. Coverity CID 12587. --- libisofs/fs_image.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libisofs/fs_image.c b/libisofs/fs_image.c index b7550ac..a09357a 100644 --- a/libisofs/fs_image.c +++ b/libisofs/fs_image.c @@ -4396,7 +4396,7 @@ int iso_analyze_apm(IsoImage *image, IsoDataSource *src, int flag) name[32] = 0; if (sai->apm_req == NULL) { sai->apm_req = calloc(ISO_APM_ENTRIES_MAX, - sizeof(struct iso_apm_partition_request)); + sizeof(struct iso_apm_partition_request *)); if (sai->apm_req == NULL) return ISO_OUT_OF_MEM; }