Don't increment cl after increment.

MFC after:	3 days
This commit is contained in:
delphij 2019-06-04 07:02:20 +00:00
parent bb1e080752
commit 55bd3d1288

View File

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