summaryrefslogtreecommitdiff
path: root/gdbus
diff options
context:
space:
mode:
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 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,