Commit 7ec53129 authored by Score_Under's avatar Score_Under Committed by Hisham Muhammad
Browse files

Fix process name updates for shorter strings (#812)

When a process name changes from a long string to a short string,
truncate instead of just overwriting the beginning.
parent af92f0b8
Showing with 1 addition and 1 deletion
+1 -1
......@@ -780,7 +780,7 @@ static bool LinuxProcessList_readCmdlineFile(Process* process, const char* dirna
}
command[lastChar + 1] = '\0';
process->basenameOffset = tokenEnd;
setCommand(process, command, lastChar);
setCommand(process, command, lastChar + 1);
return true;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment