mirror of
https://github.com/xzeldon/htop.git
synced 2025-01-31 09:07:25 +03: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…
x
Reference in New Issue
Block a user