summaryrefslogtreecommitdiffstats
path: root/dbus/dbus-marshal-header.c
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2005-06-16 04:27:45 +0000
committerColin Walters <walters@verbum.org>2005-06-16 04:27:45 +0000
commit5935f33b75ee7830d5521317e1686ec767bce502 (patch)
treeaaeeb4d71aaafa6aa8341dc92e8ff30a877c4088 /dbus/dbus-marshal-header.c
parent5cd4c9ac5fb269a413f58d188b214b1ee4f6a5a6 (diff)
2005-06-16 Colin Walters <walters@verbum.org>
* dbus/dbus-marshal-header.c (_dbus_header_load): Set header byte order from expected byte order (Patch from Chris Wilson, #3475). * dbus/dbus-marshal-byteswap.c (byteswap_body_helper): Increment pointer after swapping fixed array. Add assertion for array length.
Diffstat (limited to 'dbus/dbus-marshal-header.c')
-rw-r--r--dbus/dbus-marshal-header.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dbus/dbus-marshal-header.c b/dbus/dbus-marshal-header.c
index 83fbd3bf..3297278a 100644
--- a/dbus/dbus-marshal-header.c
+++ b/dbus/dbus-marshal-header.c
@@ -1040,6 +1040,7 @@ _dbus_header_load (DBusHeader *header,
_dbus_type_reader_next (&reader);
_dbus_assert (v_byte == byte_order);
+ header->byte_order = byte_order;
/* MESSAGE TYPE */
_dbus_assert (_dbus_type_reader_get_current_type (&reader) == DBUS_TYPE_BYTE);