From: Felix Fietkau Date: Mon, 6 Nov 2017 10:47:57 +0000 (+0100) Subject: logread: fix line buffer size X-Git-Url: http://git.archive.openwrt.org/?a=commitdiff_plain;ds=sidebyside;h=a0819044b14ec34450d2fcab33fb15232e8164fa;hp=960a29dc8c82009848b4970ee8d4c954fc8b7981;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;