Fix an assert on kernel process name length on the PCP platform

This commit is contained in:
Nathan Scott 2021-06-23 17:20:55 +10:00
parent a0f758009b
commit 865b85eb2d

View File

@ -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;
}