summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-18 04:23:52 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1997-04-18 04:23:52 +0000
commit60f3988217a5f19ccdba50a652857a6bce84fb11 (patch)
tree16bbe77b2c099baad863a7736412903e543068a8 /sys
parent3091e13ea2ef49d9b47e038765b26ec0ed9d6ff9 (diff)
fix a bug
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/i386/stand/libsa/biosdev.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/i386/stand/libsa/biosdev.c b/sys/arch/i386/stand/libsa/biosdev.c
index e6ee0edd8c7..ce0862184f4 100644
--- a/sys/arch/i386/stand/libsa/biosdev.c
+++ b/sys/arch/i386/stand/libsa/biosdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: biosdev.c,v 1.9 1997/04/18 01:28:01 mickey Exp $ */
+/* $OpenBSD: biosdev.c,v 1.10 1997/04/18 04:23:51 mickey Exp $ */
/*
* Copyright (c) 1996 Michael Shalayeff
@@ -279,7 +279,7 @@ biosstrategy(void *devdata, int rw,
#endif
/* handle floppies w/ different from drive geometry */
- if (!(bd->biosdev & 0x80))
+ if (!(bd->biosdev & 0x80) && bd->disklabel.d_nsectors != 0)
spt = bd->disklabel.d_nsectors;
else
spt = BIOSNSECTS(bd->dinfo);