diff options
author | Jérémie Dimino <jeremie@dimino.org> | 2008-04-03 11:32:09 -0400 |
---|---|---|
committer | John (J5) Palmieri <johnp@redhat.com> | 2008-04-03 11:32:09 -0400 |
commit | a689ef29f176110b0f74e47fd5dd1d2d6ad3dfd3 (patch) | |
tree | 4d975ee3d2c9d6877e8a23031258f770cf8cf08a /tools/dbus-send.c | |
parent | 7c4b34580290046fe7c136fab97b0be5642ee163 (diff) |
fix dbus-send so it can correctly send dictionaries
* 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
Diffstat (limited to 'tools/dbus-send.c')
-rw-r--r-- | tools/dbus-send.c | 9 |
1 files changed, 7 insertions, 2 deletions
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); |