summaryrefslogtreecommitdiff
path: root/usr/src/cmd/fmthard
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/fmthard')
-rw-r--r--usr/src/cmd/fmthard/fmthard.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/fmthard/fmthard.c b/usr/src/cmd/fmthard/fmthard.c
index 155199bed2..4d24e712dd 100644
--- a/usr/src/cmd/fmthard/fmthard.c
+++ b/usr/src/cmd/fmthard/fmthard.c
@@ -31,7 +31,7 @@
#pragma ident "%Z%%M% %I% %E% SMI"
/*
- * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2007 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -824,7 +824,7 @@ fmthard: Partition %d specified as %lld sectors starting at %lld\n\
if (efi->efi_parts[i].p_tag != V_BACKUP &&
efi->efi_parts[i].p_size != fullsz) {
- for (j = 0; j < V_NUMPAR; j++) {
+ for (j = 0; j < efi->efi_nparts; j++) {
if (efi->efi_parts[j].p_size == fullsz)
continue;
isize = efi->efi_parts[i].p_size;