From: mickey Date: Fri, 18 Apr 1997 04:23:51 +0000 (+0000) Subject: fix a bug X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=4726023a41c14cb30190be4c9c83fde45b56b7e6;p=openbsd fix a bug --- 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);