diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-02-03 18:17:00 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-02-03 18:17:00 +0100 |
commit | 3b97fcbd28f92a1e51887fef5de8844a89bde523 (patch) | |
tree | 39718cc26783d29e6fb4981bdfaabd415facd155 /src/journal/journald-kmsg.c | |
parent | 86caf09519c702f38552ba4f789b55a562fc29c5 (diff) |
journald: fix some xsprrintf() buffer size fallout
Diffstat (limited to 'src/journal/journald-kmsg.c')
-rw-r--r-- | src/journal/journald-kmsg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-kmsg.c b/src/journal/journald-kmsg.c index 0b02eff6ef..c4216c4043 100644 --- a/src/journal/journald-kmsg.c +++ b/src/journal/journald-kmsg.c @@ -40,7 +40,7 @@ void server_forward_kmsg( const struct ucred *ucred) { struct iovec iovec[5]; - char header_priority[4], + char header_priority[DECIMAL_STR_MAX(priority) + 3], header_pid[sizeof("[]: ")-1 + DECIMAL_STR_MAX(pid_t) + 1]; int n = 0; char *ident_buf = NULL; |