diff options
Diffstat (limited to 'sys/msdosfs/msdosfs_fat.c')
-rw-r--r-- | sys/msdosfs/msdosfs_fat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/msdosfs/msdosfs_fat.c b/sys/msdosfs/msdosfs_fat.c index a215bdc98bc..ea97cf97b6f 100644 --- a/sys/msdosfs/msdosfs_fat.c +++ b/sys/msdosfs/msdosfs_fat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_fat.c,v 1.5 1998/01/11 20:39:08 provos Exp $ */ +/* $OpenBSD: msdosfs_fat.c,v 1.6 1998/04/17 19:31:08 deraadt Exp $ */ /* $NetBSD: msdosfs_fat.c,v 1.26 1997/10/17 11:24:02 ws Exp $ */ /*- @@ -552,7 +552,7 @@ fatentry(function, pmp, cn, oldcontents, newcontents) readcn = getulong(&bp->b_data[bo]); else readcn = getushort(&bp->b_data[bo]); - if (FAT12(pmp) & (cn & 1)) + if (FAT12(pmp) && (cn & 1)) readcn >>= 4; readcn &= pmp->pm_fatmask; /* map reserved fat entries to same values for all fats */ |