aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-menu-disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'com32/hdt/hdt-menu-disk.c')
-rw-r--r--com32/hdt/hdt-menu-disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c
index 794efd24..e5644078 100644
--- a/com32/hdt/hdt-menu-disk.c
+++ b/com32/hdt/hdt-menu-disk.c
@@ -99,7 +99,7 @@ static void compute_partition_information(struct driveinfo *drive_info,
set_menu_pos(SUBMENU_Y,SUBMENU_X);
start = partition_offset;
- end = start + ptab->length;
+ end = start + ptab->length - 1;
if (ptab->length > 0)
sectors_to_size(ptab->length, size);