lxccontainer.c: Replace rindex by strrchr (bionic)

parent 6c1b2b1d
......@@ -2911,7 +2911,7 @@ int list_active_containers(const char *lxcpath, char ***names, struct lxc_contai
return -1;
while (getline(&line, &len, f) != -1) {
char *p = rindex(line, ' '), *p2;
char *p = strrchr(line, ' '), *p2;
if (!p)
continue;
p++;
......
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