From 244bf8587c3a1cb6282d5f4c7afbcb07cc953fcf Mon Sep 17 00:00:00 2001 From: Jindrich Makovicka Date: Sun, 24 Jul 2011 14:13:07 +0200 Subject: [PATCH] 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 --- libblkid/src/superblocks/vfat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libblkid/src/superblocks/vfat.c b/libblkid/src/superblocks/vfat.c index ab036f45d7..bf474630d7 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"; -- 2.47.2