summaryrefslogtreecommitdiff
path: root/src/journal/journal-send.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r--src/journal/journal-send.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c
index db5dbc0711..e7e3fa2cd0 100644
--- a/src/journal/journal-send.c
+++ b/src/journal/journal-send.c
@@ -237,7 +237,7 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
tag = "";
l = strlen(tag);
- header = alloca(l + 1 + 2 + 2 + 2);
+ header = alloca(l + 1 + 2 + 2 + 2 + 2 + 2);
memcpy(header, tag, l);
header[l++] = '\n';
@@ -247,6 +247,10 @@ _public_ int sd_journal_stream_fd(const char *tag, int priority, int priority_pr
header[l++] = '\n';
header[l++] = '0';
header[l++] = '\n';
+ header[l++] = '0';
+ header[l++] = '\n';
+ header[l++] = '0';
+ header[l++] = '\n';
r = loop_write(fd, header, l, false);
if (r < 0) {