diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 1996-12-05 17:33:46 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 1996-12-05 17:33:46 +0000 |
commit | 5b3675170f82df4c52bcab345e7999224991d02b (patch) | |
tree | 371d86415e64b2c6698ea1746ffeecea4616b28d /usr.bin | |
parent | 0f456e3c6e521269493c7bdf6154fdcc833f467f (diff) | |
download | src-5b3675170f82df4c52bcab345e7999224991d02b.tar.gz src-5b3675170f82df4c52bcab345e7999224991d02b.zip |
Adjust line to not overflow 80 cols (result of recent utmp changes)
Notes
Notes:
svn path=/head/; revision=20157
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/finger/sprint.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index 3f1fc9128a07..329c4333f653 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'); |