]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libblkid: vfat big endian fix
authorJindrich Makovicka <makovick@gmail.com>
Sun, 24 Jul 2011 12:13:07 +0000 (14:13 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 26 Jul 2011 10:09:51 +0000 (12:09 +0200)
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>
libblkid/src/superblocks/vfat.c

index ab036f45d751f62f2b26f27f18f60b9207740d77..bf474630d72b94758170d20755606d0acb66b7b1 100644 (file)
@@ -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";