lxccontainer.c: Replace rindex by strrchr (bionic)

Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
Stéphane Graber 2013-10-18 18:00:24 -04:00
parent 6c1b2b1db9
commit 0f8f9c8aa4
No known key found for this signature in database
GPG Key ID: C638974D64792D67

View 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++;