Skip to content

Commit

Permalink
Fix an assert on kernel process name length on the PCP platform
Browse files Browse the repository at this point in the history
  • Loading branch information
natoscott committed Jun 23, 2021
1 parent 8f1eba7 commit d578476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pcp/PCPProcessList.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit d578476

Please sign in to comment.