aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOliver Metz <oliver.metz@gmx.de>2013-05-08 20:21:29 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2013-05-09 07:45:51 +0200
commit041baf272082173fe8abf6fe8e7e4a16d26b9b88 (patch)
tree8aeba8c1985c890cc11d28c75e1304fc3d343d4c
parent264f37363dba6b19d1c6f7db79bc049a1cb5c44b (diff)
downloadbusybox-w32-041baf272082173fe8abf6fe8e7e4a16d26b9b88.tar.gz
busybox-w32-041baf272082173fe8abf6fe8e7e4a16d26b9b88.tar.bz2
busybox-w32-041baf272082173fe8abf6fe8e7e4a16d26b9b88.zip
volume_id: fix ntfs attribute search
len is declared as uint32_t but le16_to_cpu macro is used Signed-off-by: Oliver Metz <oliver.metz@gmx.de> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--util-linux/volume_id/ntfs.c2
1 files changed, 1 insertions, 1 deletions
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*/)
150 150
151 attr = (struct file_attribute*) &buf[attr_off]; 151 attr = (struct file_attribute*) &buf[attr_off];
152 attr_type = le32_to_cpu(attr->type); 152 attr_type = le32_to_cpu(attr->type);
153 attr_len = le16_to_cpu(attr->len); 153 attr_len = le32_to_cpu(attr->len);
154 val_off = le16_to_cpu(attr->value_offset); 154 val_off = le16_to_cpu(attr->value_offset);
155 val_len = le32_to_cpu(attr->value_len); 155 val_len = le32_to_cpu(attr->value_len);
156 attr_off += attr_len; 156 attr_off += attr_len;