From: Florian Forster Date: Thu, 19 Apr 2012 12:25:59 +0000 (+0200) Subject: collectdctl: Fix PUTVAL for data sets with multiple data sources. X-Git-Tag: collectd-5.0.5~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=119bd8e21c762a30d6f12e419cf5a7b7ee9e6b48;p=collectd.git collectdctl: Fix PUTVAL for data sets with multiple data sources. Thanks to Cyril Feraudet for pointing out this problem! --- diff --git a/src/collectdctl.c b/src/collectdctl.c index 3bd8f041..61b7fc55 100644 --- 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';