summaryrefslogtreecommitdiffstats
path: root/pcp
diff options
context:
space:
mode:
authorNathan Scott <nathans@redhat.com>2021-06-23 17:20:55 +1000
committerNathan Scott <nathans@redhat.com>2021-07-07 10:59:36 +1000
commit865b85eb2d31321e9c37334838fa514ac348d61a (patch)
tree6ea5f825fdeaae0c5692e03174247e5f2a8f9fe8 /pcp
parenta0f758009bcab8baaff0ba8aaf972445371c13b9 (diff)
Fix an assert on kernel process name length on the PCP platform
Diffstat (limited to 'pcp')
-rw-r--r--pcp/PCPProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pcp/PCPProcessList.c b/pcp/PCPProcessList.c
index f544fd71..ef37da2d 100644
--- a/pcp/PCPProcessList.c
+++ b/pcp/PCPProcessList.c
@@ -281,7 +281,7 @@ static void PCPProcessList_updateCmdline(Process* process, int pid, int offset,
++command;
--length;
if (command[length-1] == ')')
- command[length-1] = '\0';
+ command[--length] = '\0';
process->isKernelThread = true;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy