From 119bd8e21c762a30d6f12e419cf5a7b7ee9e6b48 Mon Sep 17 00:00:00 2001 From: Florian Forster Date: Thu, 19 Apr 2012 14:25:59 +0200 Subject: [PATCH] collectdctl: Fix PUTVAL for data sets with multiple data sources. Thanks to Cyril Feraudet for pointing out this problem! --- src/collectdctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 2.11.0