diff options
Diffstat (limited to 'src/journal/journal-send.c')
-rw-r--r-- | src/journal/journal-send.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/journal/journal-send.c b/src/journal/journal-send.c index 7a948a7ed1..bc44828e1c 100644 --- a/src/journal/journal-send.c +++ b/src/journal/journal-send.c @@ -375,10 +375,11 @@ _public_ int sd_journal_stream_fd(const char *identifier, int priority, int leve identifier = ""; l = strlen(identifier); - header = alloca(l + 1 + 2 + 2 + 2 + 2 + 2); + header = alloca(l + 1 + 1 + 2 + 2 + 2 + 2 + 2); memcpy(header, identifier, l); header[l++] = '\n'; + header[l++] = '\n'; header[l++] = '0' + priority; header[l++] = '\n'; header[l++] = '0' + !!level_prefix; |