summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Lange <DLange@git.local>2022-05-31 09:29:11 +0200
committerDaniel Lange <DLange@git.local>2022-05-31 09:29:11 +0200
commit2613db4b0d714b2525ae388680523f55b80451b8 (patch)
tree1761e23c0a31e50a2a647e36e943e410c6662232
parentce5009532392692ffe4ce6b394b63ca82ba4686b (diff)
parent9eed30949beb1c4cf4b0361310d2913aa50b9ded (diff)
Merge branch 'fix-strip-exe-from-cmdline' of benbe/htop
-rw-r--r--Process.c12
1 files 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)) {

© 2014-2024 Faster IT GmbH | imprint | privacy policy