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 --- tools/dbus-send.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tools') 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