summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2007-03-03 21:21:26 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2007-03-03 21:21:26 +0000
commit8f58ce59b66d35d5d484c5cfb9f5967571339ac9 (patch)
tree3c8a1e6f7394bebe9532fce71949700150f063cb
parente903532c7912a5649d8b4496f4e960a8e9ecb405 (diff)
Fix a logic error in dumpconf()
-rw-r--r--sys/arch/mac68k/mac68k/machdep.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c
index 3ea4490df77..4840db52f8b 100644
--- a/sys/arch/mac68k/mac68k/machdep.c
+++ b/sys/arch/mac68k/mac68k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.134 2006/09/22 22:15:19 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.135 2007/03/03 21:21:25 miod Exp $ */
/* $NetBSD: machdep.c,v 1.207 1998/07/08 04:39:34 thorpej Exp $ */
/*
@@ -775,7 +775,7 @@ dumpconf()
dumplo = ctod(1);
/* Put dump at end of partition, and make it fit. */
- if (dumpsize < dtoc(nblks - dumplo))
+ if (dumpsize > dtoc(nblks - dumplo))
dumpsize = dtoc(nblks - dumplo);
if (dumplo < nblks - ctod(dumpsize))
dumplo = nblks - ctod(dumpsize);