fix dbus-send so it can correctly send dictionaries
authorJérémie Dimino <jeremie@dimino.org>
Thu, 3 Apr 2008 15:32:09 +0000 (11:32 -0400)
committerJohn (J5) Palmieri <johnp@redhat.com>
Thu, 3 Apr 2008 15:32:09 +0000 (11:32 -0400)
* 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
ChangeLog
tools/dbus-send.c

diff --git a/AUTHORS b/AUTHORS
index f295d6f..f0c305b 100644 (file)
--- a/AUTHORS
+++ b/AUTHORS
@@ -8,6 +8,7 @@ Carlos Garcia Campos <carlosgc@gnome.org>
 Brian Cameron <brian.cameron@sun.com>
 Anders Carlsson <andersca@gnome.org>
 Frederic Crozat <fcrozat@mandriva.com>
+Jérémie Dimino <jeremie@dimino.org>
 Christian Ehrlicher <ch.ehrlicher@gmx.de>
 Harald Fernengel <harry@kdevelop.org>
 Owen Fraser-Green <owen@discobabe.net>
index 1f91cc8..ae1f7be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,15 @@
 2008-04-03  John (J5) Palmieri <johnp@redhat.com>
 
+       Patch from Jérémie Dimino <jeremie at dimino.org>
+
+       * 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 <johnp@redhat.com>
+
        Patch from Kimmo Hämäläinen <kimmo.hamalainen at nokia.com>
 
        * bus/expirelist.c
index 407c049..3276b95 100644 (file)
@@ -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);