Use nulls to pad proctitle rather than spaces...makes ps(1) output more
readable.
This commit is contained in:
parent
338c75418e
commit
6aab3b5a6d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2030
@ -585,5 +585,5 @@ setproctitle(a)
|
|||||||
(void)strncpy(cp, buf, LastArg - cp);
|
(void)strncpy(cp, buf, LastArg - cp);
|
||||||
cp += strlen(cp);
|
cp += strlen(cp);
|
||||||
while (cp < LastArg)
|
while (cp < LastArg)
|
||||||
*cp++ = ' ';
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
@ -585,5 +585,5 @@ setproctitle(a)
|
|||||||
(void)strncpy(cp, buf, LastArg - cp);
|
(void)strncpy(cp, buf, LastArg - cp);
|
||||||
cp += strlen(cp);
|
cp += strlen(cp);
|
||||||
while (cp < LastArg)
|
while (cp < LastArg)
|
||||||
*cp++ = ' ';
|
*cp++ = '\0';
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user