From: Colin Walters Date: Sun, 21 Mar 2010 11:01:15 +0000 (-0400) Subject: [bus] While creating a syslog, correctly get pointer data from DBusString X-Git-Tag: dbus-1.2.24~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4371e4bc8a561cf91516d22f00c9512dc7e8e53;p=thirdparty%2Fdbus.git [bus] While creating a syslog, correctly get pointer data from DBusString --- diff --git a/bus/bus.c b/bus/bus.c index 3e37e90a2..60de72af6 100644 --- a/bus/bus.c +++ b/bus/bus.c @@ -1196,7 +1196,7 @@ bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char if (!_dbus_string_append_printf_valist (&full_msg, msg, args)) goto oom_out; - _dbus_system_log (severity, "%s", full_msg); + _dbus_system_log (severity, "%s", _dbus_string_get_const_data (&full_msg)); oom_out: _dbus_string_free (&full_msg); }