summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1995-05-21 07:47:24 +0000
committerphk <phk@FreeBSD.org>1995-05-21 07:47:24 +0000
commit048a5f2fc59413dbe5d000e257667b35efafd3f4 (patch)
tree3f06fb1a3d8dcd2b430701ff845b9f910ed5ebee /lib
parent5574c42ac864d678d1bf764b1cbf1eaffd8efc5e (diff)
downloadFreeBSD-src-048a5f2fc59413dbe5d000e257667b35efafd3f4.zip
FreeBSD-src-048a5f2fc59413dbe5d000e257667b35efafd3f4.tar.gz
Fix a typo, now there should always be an active slice.
Diffstat (limited to 'lib')
-rw-r--r--lib/libdisk/write_disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/write_disk.c b/lib/libdisk/write_disk.c
index 9240f3f..a0eb8d2 100644
--- a/lib/libdisk/write_disk.c
+++ b/lib/libdisk/write_disk.c
@@ -6,7 +6,7 @@
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ----------------------------------------------------------------------------
*
- * $Id: write_disk.c,v 1.9 1995/05/08 02:08:33 phk Exp $
+ * $Id: write_disk.c,v 1.10 1995/05/18 22:25:37 phk Exp $
*
*/
@@ -198,7 +198,7 @@ Write_Disk(struct disk *d1)
}
if (!j)
for(i=0;i<NDOSPART;i++)
- if (dp[j].dp_typ == 0xa5)
+ if (dp[i].dp_typ == 0xa5)
dp[i].dp_flag = 0x80;
mbr = read_block(fd,0);
OpenPOWER on IntegriCloud