mirror of
https://git.FreeBSD.org/src.git
synced 2024-10-18 02:19:39 +00:00
Don't increment cl after increment.
MFC after: 3 days
This commit is contained in:
parent
bb43866c38
commit
51a1c26a18
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=348602
@ -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