diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2008-12-06 15:41:32 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2008-12-06 15:41:32 +0100 |
commit | 9e4b0435da1726aa58e39e350d3497097db2634f (patch) | |
tree | 4fb685b4cca0967d09e7ed9ffe7abaf7c3b79096 | |
parent | d4ab407c06a5113a655252478c98a988bc030c58 (diff) | |
download | connman-9e4b0435da1726aa58e39e350d3497097db2634f.tar.gz connman-9e4b0435da1726aa58e39e350d3497097db2634f.tar.bz2 connman-9e4b0435da1726aa58e39e350d3497097db2634f.zip |
Fix error message creation
-rw-r--r-- | gdbus/object.c | 6 |
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, |