diff options
author | Benny Baumann <BenBE@geshi.org> | 2022-05-30 22:38:59 +0200 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2022-05-30 22:38:59 +0200 |
commit | 9eed30949beb1c4cf4b0361310d2913aa50b9ded (patch) | |
tree | 1761e23c0a31e50a2a647e36e943e410c6662232 | |
parent | ce5009532392692ffe4ce6b394b63ca82ba4686b (diff) |
Restore functionality of stripExeFromCmdline setting
This was accidentally lost in fbec3e4005ee
-rw-r--r-- | Process.c | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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)) { |