X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=src%2Fcollectdctl.c;h=61b7fc55e2c24ff880730580abf2d48e0e0f571d;hb=119bd8e21c762a30d6f12e419cf5a7b7ee9e6b48;hp=3bd8f0410f846ddf21130bf93ac8059555a7c269;hpb=6e0ffb3d9edba6a4b819ace076aea0e9b5fcea51;p=collectd.git 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';