summaryrefslogtreecommitdiff
path: root/dbind
diff options
context:
space:
mode:
authorMike Gorse <mgorse@suse.com>2012-04-10 15:09:32 -0500
committerMike Gorse <mgorse@suse.com>2012-04-10 15:09:32 -0500
commitcbcc85fda633a1c2ef44b47207e5aeb8bb4f9481 (patch)
tree898242d801513aa0d8cfc01b2f40b2aafd9d94f5 /dbind
parent7a23d7cb0caf4f8782076c7026ad21647cbc65fa (diff)
downloadat-spi2-core-cbcc85fda633a1c2ef44b47207e5aeb8bb4f9481.tar.gz
Fix GError sent when receiving a reply of the wrong type
When a method reply of the wrong type was received, the parameters were still sent backwards when formatting the GError.
Diffstat (limited to 'dbind')
-rw-r--r--dbind/dbind.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/dbind/dbind.c b/dbind/dbind.c
index eabf7cd8..f216c52a 100644
--- a/dbind/dbind.c
+++ b/dbind/dbind.c
@@ -160,8 +160,8 @@ dbind_method_call_reentrant_va (DBusConnection *cnx,
if (opt_error)
dbus_set_error (opt_error, DBUS_ERROR_INVALID_ARGS,
"Call to \"%s\" returned signature %s; expected %s",
- method, p + 2,
- dbus_message_get_signature (reply));
+ method, dbus_message_get_signature (reply),
+ p + 2);
goto out;
}
p = arg_types;