make a bit more beautiful assignment in ntfs_non_resident_attr_record_add

(Logical change 1.613)
edge.strict_endians
(none)!yura 2004-10-15 11:38:45 +00:00
parent da44d62de5
commit 1ff0764a9a
1 changed files with 1 additions and 1 deletions

View File

@ -2515,7 +2515,7 @@ int ntfs_non_resident_attr_record_add(ntfs_inode *ni, ATTR_TYPES type,
a->data_size = 0;
a->initialized_size = 0;
/* Set empty mapping pairs. */
*((u8*) a + (length - dataruns_size)) = 0;
*((u8*)a + le16_to_cpu(a->mapping_pairs_offset)) = 0;
}
if (name_len)
memcpy((u8*)a + le16_to_cpu(a->name_offset),