fix name copying in ntfs_attrlist_entry_add()

(Logical change 1.564)
edge.strict_endians
(none)!yura 2004-09-17 17:32:25 +00:00
parent 921a40e14b
commit 9be64ab8c7
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ int ntfs_attrlist_entry_add(ntfs_inode *ni, ATTR_RECORD *attr)
ale->lowest_vcn = attr->lowest_vcn;
ale->mft_reference = mref;
ale->instance = attr->instance;
memcpy(ale->name, (u8 *)attr + attr->name_length, attr->name_length);
memcpy(ale->name, (u8 *)attr + attr->name_offset, attr->name_length);
/* Resize $ATTRIBUTE_LIST attribute. */
na = ntfs_attr_open(ni, AT_ATTRIBUTE_LIST, 0, 0);