Don't increment cl after increment.
MFC after: 3 days
This commit is contained in:
parent
bb1e080752
commit
55bd3d1288
@ -645,8 +645,8 @@ writefat(int fs, struct bootblock *boot, struct fatEntry *fat, int correct_fat)
|
||||
break;
|
||||
if (fat[cl].next == CLUST_FREE)
|
||||
boot->NumFree++;
|
||||
*p++ |= (u_char)(fat[cl + 1].next << 4);
|
||||
*p++ = (u_char)(fat[cl + 1].next >> 4);
|
||||
*p++ |= (u_char)(fat[cl].next << 4);
|
||||
*p++ = (u_char)(fat[cl].next >> 4);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user