projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f1ba273
)
collectdctl: Fix PUTVAL for data sets with multiple data sources.
author
Florian Forster
<octo@collectd.org>
Thu, 19 Apr 2012 12:25:59 +0000
(14:25 +0200)
committer
Florian Forster
<octo@collectd.org>
Thu, 19 Apr 2012 12:25:59 +0000
(14:25 +0200)
Thanks to Cyril Feraudet for pointing out this problem!
src/collectdctl.c
patch
|
blob
|
history
diff --git
a/src/collectdctl.c
b/src/collectdctl.c
index
3bd8f04
..
61b7fc5
100644
(file)
--- a/
src/collectdctl.c
+++ b/
src/collectdctl.c
@@
-485,7
+485,7
@@
static int putval (lcc_connection_t *c, int argc, char **argv)
while (value != 0) {
char *dot, *endptr;
- tmp = strchr (
argv[i]
, (int)':');
+ tmp = strchr (
value
, (int)':');
if (tmp != NULL) {
*tmp = '\0';