diff options
author | Pierre-Alexandre Meyer <pierre@mouraf.org> | 2009-08-19 21:20:40 -0700 |
---|---|---|
committer | erwan <erwan@r1.paris> | 2009-08-20 06:22:24 +0200 |
commit | e8fd12251a93ed182a35389c1992358e9253a37b (patch) | |
tree | 4550a7f96ff9e36018d2f43616e462b16c8f0795 | |
parent | 3b4e0f5e471de0fc6a9c335343a4ad52f8b29aeb (diff) | |
download | syslinux-e8fd12251a93ed182a35389c1992358e9253a37b.tar.gz syslinux-e8fd12251a93ed182a35389c1992358e9253a37b.tar.xz syslinux-e8fd12251a93ed182a35389c1992358e9253a37b.zip |
hdt: fix disklib display
We currently display the first sector after the end of an extended.
Fix it (-1).
Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
-rw-r--r-- | com32/hdt/hdt-cli-disk.c | 2 | ||||
-rw-r--r-- | com32/hdt/hdt-menu-disk.c | 2 |
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); |