mirror of https://github.com/xzeldon/htop.git
Fix an assert on kernel process name length on the PCP platform
This commit is contained in:
parent
a0f758009b
commit
865b85eb2d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue