From: Marcel Holtmann Date: Sat, 6 Dec 2008 14:41:32 +0000 (+0100) Subject: Fix error message creation X-Git-Tag: 2.0_alpha~4511 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9e4b0435da1726aa58e39e350d3497097db2634f;p=framework%2Fconnectivity%2Fconnman.git Fix error message creation --- diff --git a/gdbus/object.c b/gdbus/object.c index 50313a2..e3e96ce 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,