diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-05-08 00:05:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-05-08 00:05:52 +0000 |
commit | 403c57b5d698f6a7342667143a9b492e61da9ddc (patch) | |
tree | 2e40efd4f73449e4c316bb29fd26a199ecb0a98f | |
parent | 4def1857e9f1dfd31080ccfe8852bca6eb67ecd6 (diff) |
wandering fix from provos
-rw-r--r-- | sys/arch/i386/i386/disksubr.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/arch/i386/i386/disksubr.c b/sys/arch/i386/i386/disksubr.c index 167816c6d2f..04195fc0ffc 100644 --- a/sys/arch/i386/i386/disksubr.c +++ b/sys/arch/i386/i386/disksubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: disksubr.c,v 1.23 1997/05/08 00:04:06 deraadt Exp $ */ +/* $OpenBSD: disksubr.c,v 1.24 1997/05/08 00:05:51 deraadt Exp $ */ /* $NetBSD: disksubr.c,v 1.21 1996/05/03 19:42:03 christos Exp $ */ /* @@ -175,11 +175,9 @@ readdisklabel(dev, strat, lp, osdep) donot: /* * In case the disklabel read below fails, we want to - * provide a fake label in which m/n/o/p are MBR - * partitions 0/1/2/3 + * provide a fake label in i-p. */ - for (dp2=dp, i=0; i < NDOSPART && !wander && n < 8; - i++, dp2++) { + for (dp2=dp, i=0; i < NDOSPART && n < 8; i++, dp2++) { struct partition *pp = &lp->d_partitions[8+n]; if (dp2->dp_size) |