projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f66559
)
journal: fix size of buffer
author
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 03:48:47 +0000
(12:48 +0900)
committer
Yu Watanabe
<watanabe.yu+github@gmail.com>
Wed, 8 Aug 2018 08:17:23 +0000
(17:17 +0900)
src/journal/journald-syslog.c
patch
|
blob
|
history
diff --git
a/src/journal/journald-syslog.c
b/src/journal/journald-syslog.c
index
dc192d5
..
031c7ad
100644
(file)
--- a/
src/journal/journald-syslog.c
+++ b/
src/journal/journald-syslog.c
@@
-406,7
+406,7
@@
void server_process_syslog_message(
if (syslog_ts_len > 0) {
const size_t hlen = strlen("SYSLOG_TIMESTAMP=");
- t = newa(char, hlen +
raw
_len);
+ t = newa(char, hlen +
syslog_ts
_len);
memcpy(t, "SYSLOG_TIMESTAMP=", hlen);
memcpy(t + hlen, syslog_ts, syslog_ts_len);