Skip to content

Commit

Permalink
Restore functionality of stripExeFromCmdline setting
Browse files Browse the repository at this point in the history
This was accidentally lost in fbec3e4
  • Loading branch information
BenBE committed May 30, 2022
1 parent ce50095 commit 9eed309
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Process.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,11 +601,15 @@ void Process_makeCommandStr(Process* this) {
}

if (matchLen) {
/* strip the matched exe prefix */
cmdline += matchLen;
if (stripExeFromCmdline) {
/* strip the matched exe prefix */
cmdline += matchLen;

commStart -= matchLen;
commEnd -= matchLen;
commStart -= matchLen;
commEnd -= matchLen;
} else {
matchLen = 0;
}
}

if (!matchLen || (haveCommField && *cmdline)) {
Expand Down

0 comments on commit 9eed309

Please sign in to comment.