Changes by: antona
Update of /cvsroot/linux-ntfs/ntfsprogs/libntfs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv16584/libntfs
Modified Files:
index.c
Log Message:
Fix endiannes bug in libntfs/index.c. (Anton)
Index: index.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/libntfs/index.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -p -r1.13 -r1.14
--- index.c 29 Sep 2005 12:44:42 -0000 1.13
+++ index.c 16 Oct 2005 00:07:14 -0000 1.14
@@ -207,7 +207,7 @@ int ntfs_index_lookup(const void *key, c
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)) {
|