diff options
-rw-r--r-- | chunk-recover.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chunk-recover.c b/chunk-recover.c index 14c25a7..aa38916 100644 --- a/chunk-recover.c +++ b/chunk-recover.c @@ -1340,7 +1340,7 @@ static int recover_prepare(struct recover_control *rc, char *path) return -1; } - sb = malloc(sizeof(struct btrfs_super_block)); + sb = malloc(BTRFS_SUPER_INFO_SIZE); if (!sb) { fprintf(stderr, "allocating memory for sb failed.\n"); ret = -ENOMEM; |