Merge branch 'collectd-4.10' into collectd-5.0
[collectd.git] / src / collectdctl.c
index 3bd8f04..61b7fc5 100644 (file)
@@ -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';