mirror of
https://github.com/xzeldon/htop.git
synced 2025-04-11 13:07:08 +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;
|
++command;
|
||||||
--length;
|
--length;
|
||||||
if (command[length-1] == ')')
|
if (command[length-1] == ')')
|
||||||
command[length-1] = '\0';
|
command[--length] = '\0';
|
||||||
process->isKernelThread = true;
|
process->isKernelThread = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user