Date: Tue, 4 Jun 2019 07:02:20 +0000 (UTC) From: Xin LI <delphij@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r348602 - head/sbin/fsck_msdosfs Message-ID: <201906040702.x5472Lu8070235@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906040702.x5472Lu8070235>