]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxccontainer.c: Replace rindex by strrchr (bionic)
authorStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Oct 2013 22:00:24 +0000 (18:00 -0400)
committerStéphane Graber <stgraber@ubuntu.com>
Fri, 18 Oct 2013 22:00:24 +0000 (18:00 -0400)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/lxccontainer.c

index 616c92d50cca4e431c89dc4f385279939ab28033..c46adf38c37683bc1781cd06c4e88b10e8113099 100644 (file)
@@ -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++;