diff options
Diffstat (limited to 'cgpt/cgpt_edit.c')
-rw-r--r-- | cgpt/cgpt_edit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cgpt/cgpt_edit.c b/cgpt/cgpt_edit.c index 622819b7..c7781ffc 100644 --- a/cgpt/cgpt_edit.c +++ b/cgpt/cgpt_edit.c @@ -15,7 +15,8 @@ int CgptEdit(CgptEditParams *params) { if (params == NULL) return CGPT_FAILED; - if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR, 0)) + if (CGPT_OK != DriveOpen(params->drive_name, &drive, O_RDWR, + params->drive_size)) return CGPT_FAILED; if (GPT_SUCCESS != (gpt_retval = GptSanityCheck(&drive.gpt))) { |