summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-09-11 14:33:31 +0300
committerJohan Hedberg <johan.hedberg@nokia.com>2008-09-11 14:33:31 +0300
commit0b3d10c5ef6262410e6799ee3e2037c4441b563d (patch)
treeedca6c00f2c0c2cc6f3a7d992fc30c61ce02f27d /gdbus
parent8d26ca2a694a7a7385ba83ed56b0803e65dea5a1 (diff)
downloadbluez-0b3d10c5ef6262410e6799ee3e2037c4441b563d.tar.gz
Implement support g_dbus_create_error_valist
Diffstat (limited to 'gdbus')
-rw-r--r--gdbus/object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 65d263776..d11f1bf6a 100644
--- a/gdbus/object.c
+++ b/gdbus/object.c
@@ -523,7 +523,11 @@ gboolean g_dbus_unregister_interface(DBusConnection *connection,
DBusMessage *g_dbus_create_error_valist(DBusMessage *message, const char *name,
const char *format, va_list args)
{
- return dbus_message_new_error(message, name, format);
+ char str[1024];
+
+ vsnprintf(str, sizeof(str), format, args);
+
+ return dbus_message_new_error(message, name, str);
}
DBusMessage *g_dbus_create_error(DBusMessage *message, const char *name,