summaryrefslogtreecommitdiff
path: root/cgpt/cgpt_repair.c
diff options
context:
space:
mode:
Diffstat (limited to 'cgpt/cgpt_repair.c')
-rw-r--r--cgpt/cgpt_repair.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cgpt/cgpt_repair.c b/cgpt/cgpt_repair.c
index 9b4d2dfb..98899026 100644
--- a/cgpt/cgpt_repair.c
+++ b/cgpt/cgpt_repair.c
@@ -15,7 +15,8 @@ int CgptRepair(CgptRepairParams *params) {
if (params == NULL)
return CGPT_FAILED;
- if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR))
+ if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR,
+ params->drive_size))
return CGPT_FAILED;
if (drive.is_mtd) {