diff --git a/proc_parse.c b/proc_parse.c index e311f40a4..1d9bc7b72 100644 --- a/proc_parse.c +++ b/proc_parse.c @@ -1706,9 +1706,9 @@ int parse_task_cgroup(int pid, struct list_head *retl, unsigned int *n) * 3:cpuset:/ * 2:name=systemd:/user.slice/user-1000.slice/session-1.scope */ - name = strchr(buf, ':') + 1; + name = strchr(buf, ':'); if (name) - path = strchr(name, ':'); + path = strchr(++name, ':'); if (!name || !path) { pr_err("Failed parsing cgroup %s\n", buf); xfree(ncc);