diff --git a/ChangeLog b/ChangeLog index 1b3dbaef..9d3342ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -26,7 +26,8 @@ xx/xx/2005 - 1.12.2-WIP - Fix endianness bug (le16 instead of le32 when accessing mft record bytes_in_use) in volume.c::ntfs_volume_write_flags() and ntfsfix.c::OLD_ntfs_volume_set_flags(). (Anton) - - Fix endianness bug in ntfsinfo. (Anton) + - Fix endianness bugs in ntfsinfo. (Anton) + - Fix endianness bug in libntfs/index.c. (Anton) 10/10/2005 - 1.12.1 - Minor fix to location of mount.ntfs-fuse and mkfs.ntfs. diff --git a/libntfs/index.c b/libntfs/index.c index 36dcdc91..41786e6f 100644 --- a/libntfs/index.c +++ b/libntfs/index.c @@ -207,7 +207,7 @@ int ntfs_index_lookup(const void *key, const int key_len, le16_to_cpu(actx->attr->value_offset)); index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length); /* Save index block size for future use. */ - ictx->block_size = ir->index_block_size; + ictx->block_size = le32_to_cpu(ir->index_block_size); /* Get collation rule type and validate it. */ cr = ir->collation_rule; if (!ntfs_is_collation_rule_supported(cr)) {