mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-03 17:30:53 +00:00
lxccontainer.c: Replace rindex by strrchr (bionic)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
This commit is contained in:
parent
6c1b2b1db9
commit
0f8f9c8aa4
@ -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++;
|
||||
|
Loading…
Reference in New Issue
Block a user