From: Florian Forster Date: Tue, 29 Jan 2013 10:04:36 +0000 (+0100) Subject: src/utils_tail.c: Remove multiple newlines at EOL. X-Git-Tag: collectd-5.2.2~20 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fcf185301785c293ed353e77f0d01843ca4698ee;p=thirdparty%2Fcollectd.git src/utils_tail.c: Remove multiple newlines at EOL. --- diff --git a/src/utils_tail.c b/src/utils_tail.c index 5b7551d3a..0b31262d6 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);