projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
python plugin: Check return value of cpy_unicode_or_bytes_to_string().
[collectd.git]
/
src
/
utils_tail.c
diff --git
a/src/utils_tail.c
b/src/utils_tail.c
index
5b7551d
..
0b31262
100644
(file)
--- 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);