summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2017-11-06 11:47:57 +0100
committerFelix Fietkau <nbd@nbd.name>2017-11-06 11:47:57 +0100
commita0819044b14ec34450d2fcab33fb15232e8164fa (patch)
treec560c47b8af27cfe0cba5e5dc8ee98c93d7c8d25
parent960a29dc8c82009848b4970ee8d4c954fc8b7981 (diff)
downloadubox-a0819044b14ec34450d2fcab33fb15232e8164fa.tar.gz
logread: fix line buffer size
Signed-off-by: Felix Fietkau <nbd@nbd.name>
-rw-r--r--log/logread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/log/logread.c b/log/logread.c
index 920d96b..784d1f9 100644
--- a/log/logread.c
+++ b/log/logread.c
@@ -100,7 +100,7 @@ static int log_notify(struct blob_attr *msg)
{
struct blob_attr *tb[__LOG_MAX];
struct stat s;
- char buf[512];
+ char buf[LOG_LINE_SIZE + 128];
char buf_ts[32];
uint32_t p;
time_t t;