From 292b668867a31d962d38e00fef242d6331b4cd1d Mon Sep 17 00:00:00 2001 From: simonb Date: Thu, 8 Jun 2000 00:51:10 +0000 Subject: [PATCH] Fix back-to-front assignment in tname() which meant that the column width would never autosize past the header ("TT") width. Problem noticed by Geoff Wing. --- bin/ps/print.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/ps/print.c b/bin/ps/print.c index 9cf29d9f6232..6d10495d1b76 100644 --- a/bin/ps/print.c +++ b/bin/ps/print.c @@ -1,4 +1,4 @@ -/* $NetBSD: print.c,v 1.53 2000/06/07 04:58:00 simonb Exp $ */ +/* $NetBSD: print.c,v 1.54 2000/06/08 00:51:10 simonb Exp $ */ /*- * Copyright (c) 1990, 1993, 1994 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94"; #else -__RCSID("$NetBSD: print.c,v 1.53 2000/06/07 04:58:00 simonb Exp $"); +__RCSID("$NetBSD: print.c,v 1.54 2000/06/08 00:51:10 simonb Exp $"); #endif #endif /* not lint */ @@ -481,7 +481,7 @@ tname(k, ve, mode) fmtlen = strlen(ttname) + noctty; if (v->width < fmtlen) - fmtlen = v->width; + v->width = fmtlen; } else { if (noctty) printf("%-*s-", v->width - 1, ttname);