summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sbin/disklabel/editor.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index 16230623966..79a7d737681 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.342 2018/08/04 15:36:41 krw Exp $ */
+/* $OpenBSD: editor.c,v 1.343 2018/08/04 16:09:00 krw Exp $ */
/*
* Copyright (c) 1997-2000 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -752,7 +752,7 @@ editor_resize(struct disklabel *lp, char *p)
if (lp->d_secpercyl & D_VENDOR) {
u_int64_t cylsecs;
cylsecs = lp->d_secpercyl;
- secs = ((secs + cylsecs - 1) / cylsecs) * cylsecs;
+ ui = ((ui + cylsecs - 1) / cylsecs) * cylsecs;
}
#endif
if (DL_GETPOFFSET(pp) + ui > ending_sector) {