summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/manager.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/manager.c b/src/manager.c
index c2d5e5f0ef..dee6109c00 100644
--- a/src/manager.c
+++ b/src/manager.c
@@ -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;