mirror of
https://github.com/xzeldon/htop.git
synced 2025-07-13 04:34:35 +03:00
Fix an assert on kernel process name length on the PCP platform
This commit is contained in:
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user