Commit 86f0eb65 by Stéphane Graber

bionic: Replace rindex by strrchr

parent 0a4d9378
......@@ -780,7 +780,7 @@ static void setup_cpuset_if_needed(char **subsystems, char *path)
parentpath = strdup(path);
if (!parentpath)
return;
if ((p = rindex(parentpath, '/')))
if ((p = strrchr(parentpath, '/')))
*p = '\0';
v = get_value(parentpath, "cpuset.mems");
set_value(path, "cpuset.mems", v);
......
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