summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-17 19:31:09 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-04-17 19:31:09 +0000
commitc2ee71fae9cec63f4a94c921619dc28d1c5b5032 (patch)
treec77bdd4f220ac275cdb57090eaf2b2266921b593 /sys
parent5b61a047422a46a018e71b15003a30d320b777b3 (diff)
confusion over & and &&; cross@va.pubnix.com
Diffstat (limited to 'sys')
-rw-r--r--sys/msdosfs/msdosfs_fat.c4
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 */