From: Karel Zak Date: Fri, 3 Dec 2010 14:27:30 +0000 (+0100) Subject: libblkid: NTFS volume label not found X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=728d2faafdebbddfdae09d907d9ae3c5cf95cf2b;p=util-linux libblkid: NTFS volume label not found Reported-by: Hugh Eaves Signed-off-by: Karel Zak --- diff --git a/shlibs/blkid/src/superblocks/ntfs.c b/shlibs/blkid/src/superblocks/ntfs.c index 787deb2c..98f3fb2f 100644 --- a/shlibs/blkid/src/superblocks/ntfs.c +++ b/shlibs/blkid/src/superblocks/ntfs.c @@ -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);