From 4c53d31fcc5b2f3a8e5578cae57e51db84a396fb Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Wed, 27 Sep 2006 12:47:27 +0100 Subject: [PATCH] _dbus_bindings/message-get-args-impl: Fix ByteArray unmarshalling. --- _dbus_bindings/message-get-args-impl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_dbus_bindings/message-get-args-impl.h b/_dbus_bindings/message-get-args-impl.h index 099c8cf..9e86055 100644 --- a/_dbus_bindings/message-get-args-impl.h +++ b/_dbus_bindings/message-get-args-impl.h @@ -282,9 +282,11 @@ _message_iter_get_pyobject(DBusMessageIter *iter, return dict; } else if (opts->byte_arrays && type == DBUS_TYPE_BYTE) { + DBusMessageIter sub; int n; DBG("%s", "actually, a byte array..."); - dbus_message_iter_get_fixed_array(iter, + dbus_message_iter_recurse(iter, &sub); + dbus_message_iter_get_fixed_array(&sub, (const unsigned char **)&u.s, &n); return ByteArray_from_uchars((const unsigned char *)u.s, n); -- 2.11.4.GIT