aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-disk.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-08-19 21:20:40 -0700
committererwan <erwan@r1.paris>2009-08-20 06:22:24 +0200
commite8fd12251a93ed182a35389c1992358e9253a37b (patch)
tree4550a7f96ff9e36018d2f43616e462b16c8f0795 /com32/hdt/hdt-cli-disk.c
parent3b4e0f5e471de0fc6a9c335343a4ad52f8b29aeb (diff)
downloadhdt-e8fd12251a93ed182a35389c1992358e9253a37b.tar.gz
hdt-e8fd12251a93ed182a35389c1992358e9253a37b.tar.xz
hdt-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>
Diffstat (limited to 'com32/hdt/hdt-cli-disk.c')
-rw-r--r--com32/hdt/hdt-cli-disk.c2
1 files changed, 1 insertions, 1 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);