From a689ef29f176110b0f74e47fd5dd1d2d6ad3dfd3 Mon Sep 17 00:00:00 2001 From: Jérémie Dimino Date: Thu, 3 Apr 2008 11:32:09 -0400 Subject: fix dbus-send so it can correctly send dictionaries MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tools/dbus-send.c (append_dict): Send in signature when opening up a dict entry container * AUTHORS: Add Jérémie to AUTHORS file since it was a slightly above trivial fix --- AUTHORS | 1 + ChangeLog | 10 ++++++++++ tools/dbus-send.c | 9 +++++++-- 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/AUTHORS b/AUTHORS index f295d6f1..f0c305bf 100644 --- a/AUTHORS +++ b/AUTHORS @@ -8,6 +8,7 @@ Carlos Garcia Campos Brian Cameron Anders Carlsson Frederic Crozat +Jérémie Dimino Christian Ehrlicher Harald Fernengel Owen Fraser-Green diff --git a/ChangeLog b/ChangeLog index 1f91cc89..ae1f7be0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2008-04-03 John (J5) Palmieri + + Patch from Jérémie Dimino + + * tools/dbus-send.c (append_dict): Send in signature when opening up + a dict entry container + + * AUTHORS: Add Jérémie to AUTHORS file since it was a slightly above + trivial fix + 2008-04-03 John (J5) Palmieri Patch from Kimmo Hämäläinen diff --git a/tools/dbus-send.c b/tools/dbus-send.c index 407c0497..3276b950 100644 --- a/tools/dbus-send.c +++ b/tools/dbus-send.c @@ -150,10 +150,15 @@ append_dict (DBusMessageIter *iter, int keytype, int valtype, const char *value) while (val != NULL) { DBusMessageIter subiter; - + char sig[3]; + + sig[0] = keytype; + sig[1] = valtype; + sig[2] = '\0'; + dbus_message_iter_open_container (iter, DBUS_TYPE_DICT_ENTRY, - NULL, + sig, &subiter); append_arg (&subiter, keytype, val); -- cgit