Skip to content
Commit b79f02b7 authored by David King's avatar David King
Browse files

Use the length result of sd_journal_get_data()

Previously, the journal fields were passed to functions which assumed a
NUL-terminated string, and surprisingly this mostly worked. However, the
systemd journal API does not guarantee this, and there were some reports
of strange crashes and odd characters appearing in log messages.

Fix the problem by using the length result from sd_journal_get_data() to
read only the number of characters in the field.

https://bugzilla.gnome.org/show_bug.cgi?id=709290
parent 1911fd1b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment