Don't increment cl after increment.

MFC after:	3 days
This commit is contained in:
Xin LI 2019-06-04 07:02:20 +00:00
parent bb43866c38
commit 51a1c26a18
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348602

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