summaryrefslogtreecommitdiff
path: root/sbin/fdisk/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/fdisk/misc.c')
-rw-r--r--sbin/fdisk/misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fdisk/misc.c b/sbin/fdisk/misc.c
index d16492897b6..ae5fd717caf 100644
--- a/sbin/fdisk/misc.c
+++ b/sbin/fdisk/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.36 2014/03/13 12:02:28 krw Exp $ */
+/* $OpenBSD: misc.c,v 1.37 2014/03/14 15:41:33 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -244,7 +244,7 @@ getuint(struct disk *disk, char *prompt, u_int32_t oval, u_int32_t maxval)
if (oval > maxval)
oval = maxval;
- secpercyl = disk->sectors * disk->heads;
+ secpercyl = disk->real->sectors * disk->real->heads;
do {
printf("%s: [%u] ", prompt, oval);