projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd09c93
)
utils_format_graphite: terminate buffer with \0
author
Markus Linnala
<Markus.Linnala@cybercom.com>
Tue, 11 Oct 2016 15:07:25 +0000
(18:07 +0300)
committer
Florian Forster
<octo@collectd.org>
Wed, 12 Oct 2016 14:44:30 +0000
(16:44 +0200)
Signed-off-by: Florian Forster <octo@collectd.org>
src/utils_format_graphite.c
patch
|
blob
|
history
diff --git
a/src/utils_format_graphite.c
b/src/utils_format_graphite.c
index
023f7a4
..
0098051
100644
(file)
--- a/
src/utils_format_graphite.c
+++ b/
src/utils_format_graphite.c
@@
-250,6
+250,7
@@
int format_graphite (char *buffer, size_t buffer_size,
}
memcpy((void *) (buffer + buffer_pos), message, message_len);
buffer_pos += message_len;
+ buffer[buffer_pos] = '\0';
}
sfree (rates);
return (status);