summaryrefslogtreecommitdiff
path: root/shlibs/blkid/src
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2010-12-03 15:27:30 +0100
committerKarel Zak <kzak@redhat.com>2010-12-03 15:27:30 +0100
commit728d2faafdebbddfdae09d907d9ae3c5cf95cf2b (patch)
treef77bb61c1b4fd0e1ca0134f0c1a0880ba4a56d78 /shlibs/blkid/src
parent7a15536c95fff670d74662893918839457555005 (diff)
downloadutil-linux-old-728d2faafdebbddfdae09d907d9ae3c5cf95cf2b.tar.gz
libblkid: NTFS volume label not found
Reported-by: Hugh Eaves <hugh@hugheaves.com> Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'shlibs/blkid/src')
-rw-r--r--shlibs/blkid/src/superblocks/ntfs.c2
1 files changed, 1 insertions, 1 deletions
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);