summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1997-03-03 08:20:28 +0000
committerache <ache@FreeBSD.org>1997-03-03 08:20:28 +0000
commit648176d7b868a0ba1c41f0c084a82c336b7c5969 (patch)
treea707e63976727aeca24b3571855b00628fa95cb4 /bin
parent681c062a9104a067b8b6d52d4c8f277dda632be4 (diff)
downloadFreeBSD-src-648176d7b868a0ba1c41f0c084a82c336b7c5969.zip
FreeBSD-src-648176d7b868a0ba1c41f0c084a82c336b7c5969.tar.gz
Use MAXLOGNAME-1 for width because MAXLOGNAME includes NUL
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/keyword.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ps/keyword.c b/bin/ps/keyword.c
index 2993f8c..e334cc8 100644
--- a/bin/ps/keyword.c
+++ b/bin/ps/keyword.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id$
+ * $Id: keyword.c,v 1.12 1997/02/22 14:05:03 peter Exp $
*/
#ifndef lint
@@ -105,7 +105,7 @@ VAR var[] = {
{"ktrace", "KTRACE", NULL, 0, pvar, 8, POFF(p_traceflag), LONG, "x"},
{"ktracep", "KTRACEP", NULL, 0, pvar, 8, POFF(p_tracep), LONG, "x"},
{"lim", "LIM", NULL, 0, maxrss, 5},
- {"login", "LOGIN", NULL, LJUST, logname, MAXLOGNAME},
+ {"login", "LOGIN", NULL, LJUST, logname, MAXLOGNAME-1},
{"logname", "", "login"},
{"lstart", "STARTED", NULL, LJUST|USER, lstarted, 28},
{"majflt", "MAJFLT", NULL, USER, rvar, 4, ROFF(ru_majflt), LONG, "d"},
@@ -193,7 +193,7 @@ VAR var[] = {
{"ktrace", "KTRACE", NULL, 0, pvar, 8, POFF(p_traceflag), LONG, "x"},
{"ktracep", "KTRACEP", NULL, 0, pvar, 8, POFF(p_tracep), LONG, "x"},
{"lim", "LIM", NULL, 0, maxrss, 5},
- {"logname", "LOGNAME", NULL, LJUST, logname, MAXLOGNAME},
+ {"logname", "LOGNAME", NULL, LJUST, logname, MAXLOGNAME-1},
{"lstart", "STARTED", NULL, LJUST|USER, lstarted, 28},
{"majflt", "MAJFLT", NULL, USER, rvar, 4, ROFF(ru_majflt), LONG, "d"},
{"minflt", "MINFLT", NULL, USER, rvar, 4, ROFF(ru_minflt), LONG, "d"},
OpenPOWER on IntegriCloud