Use nulls to pad proctitle rather than spaces...makes ps(1) output more

readable.
This commit is contained in:
David Greenman 1994-08-11 13:40:58 +00:00
parent 338c75418e
commit 6aab3b5a6d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2030
2 changed files with 2 additions and 2 deletions

View File

@ -585,5 +585,5 @@ setproctitle(a)
(void)strncpy(cp, buf, LastArg - cp);
cp += strlen(cp);
while (cp < LastArg)
*cp++ = ' ';
*cp++ = '\0';
}

View File

@ -585,5 +585,5 @@ setproctitle(a)
(void)strncpy(cp, buf, LastArg - cp);
cp += strlen(cp);
while (cp < LastArg)
*cp++ = ' ';
*cp++ = '\0';
}