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

readable.
This commit is contained in:
dg 1994-08-11 13:40:58 +00:00
parent 89be8c23d3
commit 98672b296b
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';
}