From 728d2faafdebbddfdae09d907d9ae3c5cf95cf2b Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Fri, 3 Dec 2010 15:27:30 +0100 Subject: [PATCH] libblkid: NTFS volume label not found Reported-by: Hugh Eaves Signed-off-by: Karel Zak --- shlibs/blkid/src/superblocks/ntfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.5