X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fjournald-syslog.c;h=7d545ca31d78b7b9b346806c75f00abb347bdf26;hp=355f6e6a4b52e00fb8e746e02229ebe5fecb7d30;hb=3b97fcbd28f92a1e51887fef5de8844a89bde523;hpb=86caf09519c702f38552ba4f789b55a562fc29c5;ds=inline diff --git a/src/journal/journald-syslog.c b/src/journal/journald-syslog.c index 355f6e6a4..7d545ca31 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;