diff options
| author | John Polstra <jdp@FreeBSD.org> | 1997-04-16 16:08:11 +0000 |
|---|---|---|
| committer | John Polstra <jdp@FreeBSD.org> | 1997-04-16 16:08:11 +0000 |
| commit | 3cc273e0bee1bf92ec10809b2dc5eafcabe2993a (patch) | |
| tree | 7e1a73427212d227d9b3d21d8891d380fc8618cf | |
| parent | eff7ae0f7b6b83e069863ea2078d3748ef3a2c8d (diff) | |
Notes
| -rw-r--r-- | bin/ps/print.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/bin/ps/print.c b/bin/ps/print.c index 2ac3c28046ee..aac505a50e38 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -30,7 +30,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id$ + * $Id: print.c,v 1.19 1997/02/22 14:05:05 peter Exp $ */ #ifndef lint @@ -103,7 +103,10 @@ command(k, ve) v = ve->var; if (cflag) { - (void)printf("%-*s", v->width, KI_PROC(k)->p_comm); + if (ve->next == NULL) /* last field, don't pad */ + (void)printf("%s", KI_PROC(k)->p_comm); + else + (void)printf("%-*s", v->width, KI_PROC(k)->p_comm); return; } |
