From: Felix Fietkau Date: Mon, 6 Nov 2017 10:47:57 +0000 (+0100) Subject: logread: fix line buffer size X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a0819044b14ec34450d2fcab33fb15232e8164fa;p=project%2Fubox.git logread: fix line buffer size Signed-off-by: Felix Fietkau --- 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;