Fix a typo, now there should always be an active slice.

This commit is contained in:
phk 1995-05-21 07:47:24 +00:00
parent 5574c42ac8
commit 048a5f2fc5
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);