mirror of https://github.com/xzeldon/htop.git
Merge branch 'fix-strip-exe-from-cmdline' of benbe/htop
This commit is contained in:
commit
2613db4b0d
12
Process.c
12
Process.c
|
@ -601,11 +601,15 @@ void Process_makeCommandStr(Process* this) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (matchLen) {
|
if (matchLen) {
|
||||||
/* strip the matched exe prefix */
|
if (stripExeFromCmdline) {
|
||||||
cmdline += matchLen;
|
/* strip the matched exe prefix */
|
||||||
|
cmdline += matchLen;
|
||||||
|
|
||||||
commStart -= matchLen;
|
commStart -= matchLen;
|
||||||
commEnd -= matchLen;
|
commEnd -= matchLen;
|
||||||
|
} else {
|
||||||
|
matchLen = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!matchLen || (haveCommField && *cmdline)) {
|
if (!matchLen || (haveCommField && *cmdline)) {
|
||||||
|
|
Loading…
Reference in New Issue