summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2008-12-06 15:41:32 +0100
committerMarcel Holtmann <marcel@holtmann.org>2008-12-06 15:41:32 +0100
commit9e4b0435da1726aa58e39e350d3497097db2634f (patch)
tree4fb685b4cca0967d09e7ed9ffe7abaf7c3b79096
parentd4ab407c06a5113a655252478c98a988bc030c58 (diff)
downloadconnman-9e4b0435da1726aa58e39e350d3497097db2634f.tar.gz
connman-9e4b0435da1726aa58e39e350d3497097db2634f.tar.bz2
connman-9e4b0435da1726aa58e39e350d3497097db2634f.zip
Fix error message creation
-rw-r--r--gdbus/object.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdbus/object.c b/gdbus/object.c
index 50313a26..e3e96ce0 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,