]> err.no Git - util-linux/commitdiff
libblkid: NTFS volume label not found
authorKarel Zak <kzak@redhat.com>
Fri, 3 Dec 2010 14:27:30 +0000 (15:27 +0100)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Dec 2010 14:27:30 +0000 (15:27 +0100)
Reported-by: Hugh Eaves <hugh@hugheaves.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/blkid/src/superblocks/ntfs.c

index 787deb2c97705177564657c0153b9ca8cbcf02a7..98f3fb2f9ec0e760a28de5e884c6c163f83ec291 100644 (file)
@@ -130,7 +130,7 @@ static int probe_ntfs(blkid_probe pr, const struct blkid_idmag *mag)
 
        while (1) {
                attr = (struct file_attribute *) (buf_mft + attr_off);
-               attr_len = le16_to_cpu(attr->len);
+               attr_len = le32_to_cpu(attr->len);
                attr_type = le32_to_cpu(attr->type);
                val_off = le16_to_cpu(attr->value_offset);
                val_len = le32_to_cpu(attr->value_len);