From: Oliver Metz Date: Wed, 8 May 2013 18:21:29 +0000 (+0200) Subject: volume_id: fix ntfs attribute search X-Git-Tag: 1_22_0~201 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=041baf272082173fe8abf6fe8e7e4a16d26b9b88;p=oweals%2Fbusybox.git volume_id: fix ntfs attribute search len is declared as uint32_t but le16_to_cpu macro is used Signed-off-by: Oliver Metz Signed-off-by: Denys Vlasenko --- diff --git a/util-linux/volume_id/ntfs.c b/util-linux/volume_id/ntfs.c index 7b2612f01..0444e546b 100644 --- a/util-linux/volume_id/ntfs.c +++ b/util-linux/volume_id/ntfs.c @@ -150,7 +150,7 @@ int FAST_FUNC volume_id_probe_ntfs(struct volume_id *id /*,uint64_t off*/) attr = (struct file_attribute*) &buf[attr_off]; attr_type = le32_to_cpu(attr->type); - attr_len = le16_to_cpu(attr->len); + attr_len = le32_to_cpu(attr->len); val_off = le16_to_cpu(attr->value_offset); val_len = le32_to_cpu(attr->value_len); attr_off += attr_len;