Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/ps Fix back-to-front assignment in tname() which meant t...
details: https://anonhg.NetBSD.org/src/rev/9c8893e6104a
branches: trunk
changeset: 487450:9c8893e6104a
user: simonb <simonb%NetBSD.org@localhost>
date: Thu Jun 08 00:51:10 2000 +0000
description:
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.
diffstat:
bin/ps/print.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r e549516f9233 -r 9c8893e6104a bin/ps/print.c
--- a/bin/ps/print.c Thu Jun 08 00:26:48 2000 +0000
+++ b/bin/ps/print.c Thu Jun 08 00:51:10 2000 +0000
@@ -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 @@
fmtlen = strlen(ttname) + noctty;
if (v->width < fmtlen)
- fmtlen = v->width;
+ v->width = fmtlen;
} else {
if (noctty)
printf("%-*s-", v->width - 1, ttname);
Home |
Main Index |
Thread Index |
Old Index