Use nulls to pad proctitle rather than spaces...makes ps(1) output more
readable.
This commit is contained in:
parent
89be8c23d3
commit
98672b296b
@ -585,5 +585,5 @@ setproctitle(a)
|
||||
(void)strncpy(cp, buf, LastArg - cp);
|
||||
cp += strlen(cp);
|
||||
while (cp < LastArg)
|
||||
*cp++ = ' ';
|
||||
*cp++ = '\0';
|
||||
}
|
||||
|
@ -585,5 +585,5 @@ setproctitle(a)
|
||||
(void)strncpy(cp, buf, LastArg - cp);
|
||||
cp += strlen(cp);
|
||||
while (cp < LastArg)
|
||||
*cp++ = ' ';
|
||||
*cp++ = '\0';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user