summaryrefslogtreecommitdiffstats
path: root/libblkid
diff options
context:
space:
mode:
authorJindrich Makovicka2011-07-24 14:13:07 +0200
committerKarel Zak2011-07-26 12:09:51 +0200
commit244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf (patch)
treee336045709dc0c66659de6adffc5739108352e45 /libblkid
parentlibblkid: use 64bit offset in search_fat_label to avoid truncation (diff)
downloadkernel-qcow2-util-linux-244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf.tar.gz
kernel-qcow2-util-linux-244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf.tar.xz
kernel-qcow2-util-linux-244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf.zip
libblkid: vfat big endian fix
when getting the next cluster id, clear the 4 most significant bits after converting to machine endian Signed-off-by: Jindrich Makovicka <makovick@gmail.com>
Diffstat (limited to 'libblkid')
-rw-r--r--libblkid/src/superblocks/vfat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c
index ab036f45d..bf474630d 100644
--- a/libblkid/src/superblocks/vfat.c
+++ b/libblkid/src/superblocks/vfat.c
@@ -356,7 +356,7 @@ static int probe_vfat(blkid_probe pr, const struct blkid_idmag *mag)
break;
/* set next cluster */
- next = le32_to_cpu(*((uint32_t *) buf) & 0x0fffffff);
+ next = le32_to_cpu(*((uint32_t *) buf)) & 0x0fffffff;
}
version = "FAT32";