aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--com32/hdt/hdt-cli-disk.c2
-rw-r--r--com32/hdt/hdt-menu-disk.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index ef67abf6..ee7c10df 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -71,7 +71,7 @@ static void show_partition_information(struct driveinfo *drive_info,
int i = nb_partitions_seen;
start = partition_offset;
- end = start + ptab->length;
+ end = start + ptab->length - 1;
if (ptab->length > 0)
sectors_to_size(ptab->length, size);
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);