Changes by: uvman
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357:/tmp/cvs-serv17781/libntfs
Modified Files:
index.c
Log Message:
More big-endiness fixes. (zhanglinbao, Yuval)
Index: index.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/index.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -p -r1.35 -r1.36
--- index.c 29 Oct 2006 00:55:45 -0000 1.35
+++ index.c 30 Oct 2006 13:29:45 -0000 1.36
@@ -789,7 +789,7 @@ done:
return 0;
}
-static INDEX_BLOCK *ntfs_ib_alloc(VCN ib_vcn, int ib_size,
+static INDEX_BLOCK *ntfs_ib_alloc(VCN ib_vcn, u32 ib_size,
INDEX_HEADER_FLAGS node_type)
{
INDEX_BLOCK *ib;
@@ -985,8 +985,8 @@ static INDEX_BLOCK *ntfs_ir_to_ia(INDEX_
ntfs_log_trace("Entering.\n");
- ib = ntfs_ib_alloc(ib_vcn, ir->index_block_size, LEAF_NODE);
- if (!ib)
+ if (!(ib = ntfs_ib_alloc(ib_vcn, le32_to_cpu(ir->index_block_size),
+ LEAF_NODE)))
return NULL;
ies_start = (char *)ntfs_ie_get_first(&ir->index);
|