summaryrefslogtreecommitdiff
path: root/src/journal/journald-syslog.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-02-03 18:17:00 +0100
committerLennart Poettering <lennart@poettering.net>2015-02-03 18:17:00 +0100
commit3b97fcbd28f92a1e51887fef5de8844a89bde523 (patch)
tree39718cc26783d29e6fb4981bdfaabd415facd155 /src/journal/journald-syslog.c
parent86caf09519c702f38552ba4f789b55a562fc29c5 (diff)
journald: fix some xsprrintf() buffer size fallout
Diffstat (limited to 'src/journal/journald-syslog.c')
-rw-r--r--src/journal/journald-syslog.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c
index 355f6e6a4b..7d545ca31d 100644
--- a/src/journal/journald-syslog.c
+++ b/src/journal/journald-syslog.c
@@ -124,7 +124,7 @@ static void forward_syslog_raw(Server *s, int priority, const char *buffer, cons
void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, const struct ucred *ucred, const struct timeval *tv) {
struct iovec iovec[5];
- char header_priority[4], header_time[64],
+ char header_priority[DECIMAL_STR_MAX(priority) + 3], header_time[64],
header_pid[sizeof("[]: ")-1 + DECIMAL_STR_MAX(pid_t) + 1];
int n = 0;
time_t t;