aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorGarance A Drosehn <gad@FreeBSD.org>2004-06-23 12:18:36 +0000
committerGarance A Drosehn <gad@FreeBSD.org>2004-06-23 12:18:36 +0000
commit4e8a8d9f858d36217f162d110ae9ed105cad25e8 (patch)
treee4f23619a4487e1abcd208449ac2f0af7acf2c0b /bin
parent820434b27f0822221f8b85db26279a3b5fb993de (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/print.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c
index 0f2b14ae2af5c..da8f2e0ab35de 100644
--- a/bin/ps/print.c
+++ b/bin/ps/print.c
@@ -180,7 +180,10 @@ ucomm(KINFO *k, VARENT *ve)
VAR *v;
v = ve->var;
- (void)printf("%-*s", v->width, k->ki_p->ki_comm);
+ if (ve->next == NULL) /* last field, don't pad */
+ (void)printf("%s", k->ki_p->ki_comm);
+ else
+ (void)printf("%-*s", v->width, k->ki_p->ki_comm);
}
void