Commit 1bc5ac7e authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't use index(3), use strchr(3).

parent f1bb6a6c
......@@ -174,14 +174,14 @@ vsl_m_arg(const struct VSM_data *vd, const char *opt)
ALLOC_OBJ(m, VSL_RE_MATCH_MAGIC);
AN(m);
if (! index(opt, ':')) {
if (!strchr(opt, ':')) {
fprintf(stderr, "No : found in -o option %s\n", opt);
return (-1);
}
o = strdup(opt);
AN(o);
regex = index(o, ':');
regex = strchr(o, ':');
*regex = '\0';
regex++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment