summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2010-02-04 16:27:58 +0000
committerRichard Jones <rjones@redhat.com>2010-02-19 15:01:34 +0000
commit4e5e00ec1b1f1377f322dcbc48824a0b48b18ea4 (patch)
tree463d51dafbc268c6aaed6dcc807d824d71f7c513
parent6d9c591763b8d739348e01014bbba241c6c19023 (diff)
downloadhivex-4e5e00ec1b1f1377f322dcbc48824a0b48b18ea4.tar.gz
hivex-4e5e00ec1b1f1377f322dcbc48824a0b48b18ea4.tar.xz
hivex-4e5e00ec1b1f1377f322dcbc48824a0b48b18ea4.zip
hivex: Some missing le32toh endianness conversions.
-rw-r--r--hivex/hivex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hivex/hivex.c b/hivex/hivex.c
index c8257a3..ce3e14c 100644
--- a/hivex/hivex.c
+++ b/hivex/hivex.c
@@ -803,7 +803,7 @@ get_children (hive_h *h, hive_node_h node,
/* Count total number of children. */
size_t i, count = 0;
for (i = 0; i < nr_offsets; ++i) {
- hive_node_h offset = ri->offset[i];
+ hive_node_h offset = le32toh (ri->offset[i]);
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)
@@ -839,7 +839,7 @@ get_children (hive_h *h, hive_node_h node,
* something reasonable above.
*/
for (i = 0; i < nr_offsets; ++i) {
- hive_node_h offset = ri->offset[i];
+ hive_node_h offset = le32toh (ri->offset[i]);
offset += 0x1000;
if (!IS_VALID_BLOCK (h, offset)) {
if (h->msglvl >= 2)