summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-10-24 02:49:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-10-24 02:49:56 +0000
commitfd4f545692dd63307863efb512ec48cd67add913 (patch)
tree992c90999446a9c401d5abaeb49cfa0366eef8df /sbin
parent9237dadd1989611f4951caddd770b73030a5131f (diff)
Typo
Diffstat (limited to 'sbin')
-rw-r--r--sbin/disklabel/editor.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/disklabel/editor.c b/sbin/disklabel/editor.c
index bfc777d6af1..efd36401300 100644
--- a/sbin/disklabel/editor.c
+++ b/sbin/disklabel/editor.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: editor.c,v 1.23 1997/10/24 02:44:07 millert Exp $ */
+/* $OpenBSD: editor.c,v 1.24 1997/10/24 02:49:55 millert Exp $ */
/*
* Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -31,7 +31,7 @@
*/
#ifndef lint
-static char rcsid[] = "$OpenBSD: editor.c,v 1.23 1997/10/24 02:44:07 millert Exp $";
+static char rcsid[] = "$OpenBSD: editor.c,v 1.24 1997/10/24 02:49:55 millert Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -419,8 +419,8 @@ editor_add(lp, freep, p)
#if NUMBOOT == 1
/* Don't clobber boot blocks */
if (pp->p_offset == 0) {
- pp->p_offset = pp->d_secpercyl;
- pp->p_size -= pp->d_secpercyl;
+ pp->p_offset = lp->d_secpercyl;
+ pp->p_size -= lp->d_secpercyl;
}
#endif
old_offset = pp->p_offset;