mirror of
https://github.com/xzeldon/htop.git
synced 2024-12-24 15:15:44 +00:00
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
Block a user