* libparted/labels/pt-tools.c (ptt_partition_max_start_len): Use correct
maximum values in exception text.
---
 libparted/labels/pt-tools.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libparted/labels/pt-tools.c b/libparted/labels/pt-tools.c
index 9992529..ff3186d 100644
--- a/libparted/labels/pt-tools.c
+++ b/libparted/labels/pt-tools.c
@@ -127,7 +127,7 @@ ptt_partition_max_start_len (char const *pt_type, const 
PedPartition *part)
                             " of %jd"),
                           part->geom.length,
                           pt_type,
-                          UINT32_MAX);
+                          pt_lim->max_length);
       return 0;
     }
 
@@ -140,7 +140,7 @@ ptt_partition_max_start_len (char const *pt_type, const 
PedPartition *part)
                           " of %jd"),
                         part->geom.start,
                         pt_type,
-                        UINT32_MAX);
+                        pt_lim->max_start_sector);
     return 0;
   }
 
-- 
1.7.0

_______________________________________________
parted-devel mailing list
[email protected]
http://lists.alioth.debian.org/mailman/listinfo/parted-devel

Reply via email to