summaryrefslogtreecommitdiffstats
path: root/usr.bin/finger/sprint.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1996-12-05 17:33:46 +0000
committerache <ache@FreeBSD.org>1996-12-05 17:33:46 +0000
commitadcb17c3edfe401ae8509a8067592d554fc0d9a9 (patch)
tree371d86415e64b2c6698ea1746ffeecea4616b28d /usr.bin/finger/sprint.c
parent48670a95db85fb547adcafa4bde2d7d043bd8ecd (diff)
downloadFreeBSD-src-adcb17c3edfe401ae8509a8067592d554fc0d9a9.zip
FreeBSD-src-adcb17c3edfe401ae8509a8067592d554fc0d9a9.tar.gz
Adjust line to not overflow 80 cols (result of recent utmp changes)
Diffstat (limited to 'usr.bin/finger/sprint.c')
-rw-r--r--usr.bin/finger/sprint.c16
1 files changed, 8 insertions, 8 deletions
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');
OpenPOWER on IntegriCloud