From fcf185301785c293ed353e77f0d01843ca4698ee Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Tue, 29 Jan 2013 11:04:36 +0100 Subject: [PATCH] src/utils_tail.c: Remove multiple newlines at EOL. --- src/utils_tail.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils_tail.c b/src/utils_tail.c index 5b7551d3..0b31262d 100644 --- a/src/utils_tail.c +++ b/src/utils_tail.c @@ -239,6 +239,7 @@ int cu_tail_read (cu_tail_t *obj, char *buf, int buflen, tailfunc_t *callback, if (buf[len - 1] != '\n') break; buf[len - 1] = '\0'; + len--; } status = callback (data, buf, buflen); -- 2.30.2