From 9eed30949beb1c4cf4b0361310d2913aa50b9ded Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Mon, 30 May 2022 22:38:59 +0200 Subject: Restore functionality of stripExeFromCmdline setting This was accidentally lost in fbec3e4005ee --- Process.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Process.c b/Process.c index 55bbae69..9d897604 100644 --- a/Process.c +++ b/Process.c @@ -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)) { -- cgit v1.2.3