summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Walters <walters@verbum.org>2010-03-21 07:01:15 -0400
committerColin Walters <walters@verbum.org>2010-03-21 07:01:55 -0400
commitc4371e4bc8a561cf91516d22f00c9512dc7e8e53 (patch)
treeaf2bb95b6dd2c2cb54e077f49615fa4c471eb47a
parentaf95ba7c8eafaff6c5a8ab8dd2784427b168cab5 (diff)
downloaddbus-c4371e4bc8a561cf91516d22f00c9512dc7e8e53.tar.gz
[bus] While creating a syslog, correctly get pointer data from DBusString
-rw-r--r--bus/bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus/bus.c b/bus/bus.c
index 3e37e90a..60de72af 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);
}