From adcb17c3edfe401ae8509a8067592d554fc0d9a9 Mon Sep 17 00:00:00 2001 From: ache Date: Thu, 5 Dec 1996 17:33:46 +0000 Subject: Adjust line to not overflow 80 cols (result of recent utmp changes) --- usr.bin/finger/sprint.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'usr.bin/finger/sprint.c') diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index 3f1fc91..329c433 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -80,10 +80,10 @@ sflag_print() * remote host */ #define MAXREALNAME 20 -#define MAXHOSTNAME 20 /* in reality, hosts are never longer than 16 */ +#define MAXHOSTNAME 17 /* in reality, hosts are never longer than 16 */ (void)printf("%-*s %-*s%s %s\n", UT_NAMESIZE, "Login", MAXREALNAME, "Name", " TTY Idle Login Time", - oflag ? " Office Office Phone" : " Where"); + oflag ? " Office Phone" : " Where"); for (sflag = R_FIRST;; sflag = R_NEXT) { r = (*db->seq)(db, &key, &data, sflag); @@ -132,12 +132,12 @@ sflag_print() (void)printf(" %.5s", p + 11); office: if (oflag) { if (pn->office) - (void)printf(" %-10.10s", pn->office); - else if (pn->officephone) - (void)printf(" %-10.10s", " "); - if (pn->officephone) - (void)printf(" %-.15s", - prphone(pn->officephone)); + (void)printf(" %-7.7s", pn->office); + else if (pn->officephone) + (void)printf(" %-7.7s", " "); + if (pn->officephone) + (void)printf(" %-.9s", + prphone(pn->officephone)); } else (void)printf(" %.*s", MAXHOSTNAME, w->host); putchar('\n'); -- cgit v1.1