fix: fix trailing space

This commit is contained in:
apocelipes
2023-12-23 04:55:14 +09:00
committed by Carter Li
parent cf98e6f5a1
commit 113b1b8fc2
8 changed files with 15 additions and 2 deletions
@@ -37,6 +37,7 @@ static void getProcessInformation(pid_t pid, FFstrbuf* processName, FFstrbuf* ex
if(ffAppendFileBuffer(cmdlineFilePath, exe))
{
ffStrbufTrimRightSpace(exe);
ffStrbufSubstrBeforeFirstC(exe, '\0'); //Trim the arguments
ffStrbufTrimLeft(exe, '-'); //Happens in TTY
}