X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lib%2Fext2fs%2Fopenfs.c;h=cb683eea9e36647a26c3686da8bb3f4105b3dc46;hb=e6a4571eec5ce0e75fb8a5a41c30bf0e68d90efe;hp=0c38b171aa6bc38ac293e9af2f9b9bfb9f05dee5;hpb=5ea565fd37821b2708c2b7f1e49fe6fc94587794;p=tools%2Fe2fsprogs.git diff --git a/lib/ext2fs/openfs.c b/lib/ext2fs/openfs.c index 0c38b17..cb683ee 100644 --- a/lib/ext2fs/openfs.c +++ b/lib/ext2fs/openfs.c @@ -280,7 +280,7 @@ errcode_t ext2fs_open2(const char *name, const char *io_options, blocks_per_group); fs->desc_blocks = ext2fs_div_ceil(fs->group_desc_count, EXT2_DESC_PER_BLOCK(fs->super)); - retval = ext2fs_get_mem(fs->desc_blocks * fs->blocksize, + retval = ext2fs_get_array(fs->desc_blocks, fs->blocksize, &fs->group_desc); if (retval) goto cleanup;