svn commit: r348602 - head/sbin/fsck_msdosfs
Xin LI
delphij at FreeBSD.org
Tue Jun 4 07:02:21 UTC 2019
Author: delphij
Date: Tue Jun 4 07:02:20 2019
New Revision: 348602
URL: https://svnweb.freebsd.org/changeset/base/348602
Log:
Don't increment cl after increment.
MFC after: 3 days
Modified:
head/sbin/fsck_msdosfs/fat.c
Modified: head/sbin/fsck_msdosfs/fat.c
==============================================================================
--- head/sbin/fsck_msdosfs/fat.c Tue Jun 4 06:21:31 2019 (r348601)
+++ head/sbin/fsck_msdosfs/fat.c Tue Jun 4 07:02:20 2019 (r348602)
@@ -645,8 +645,8 @@ writefat(int fs, struct bootblock *boot, struct fatEnt
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;
}
}
More information about the svn-src-all
mailing list