Commit 8c40acf7 authored by Lennart Poettering's avatar Lennart Poettering

notify: properly NUL-terminate received messages

parent d0b170c8
......@@ -1656,7 +1656,8 @@ static int manager_process_notify_fd(Manager *m) {
continue;
}
char_array_0(buf);
assert((size_t) n < sizeof(buf));
buf[n] = 0;
if (!(tags = strv_split(buf, "\n\r")))
return -ENOMEM;
......
Markdown is supported
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