aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Greenman <dg@FreeBSD.org>1995-10-06 01:42:26 +0000
committerDavid Greenman <dg@FreeBSD.org>1995-10-06 01:42:26 +0000
commitc05e2ebcfd1a4f84fd7c7b3b3f9dc6401cf3815c (patch)
tree64427031a88ac96aa344d573c366be5dea38416d
parent5006c3b9926efa30e369e9301d03a47c14ca9fcb (diff)
Notes
-rw-r--r--usr.bin/finger/sprint.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c
index 7d1b2ea732fa1..db1974db7f413 100644
--- a/usr.bin/finger/sprint.c
+++ b/usr.bin/finger/sprint.c
@@ -80,9 +80,9 @@ sflag_print()
* remote host
*/
#define MAXREALNAME 20
-#define MAXHOSTNAME 18 /* in reality, hosts are not longer than 16 */
+#define MAXHOSTNAME 20
(void)printf("%-*s %-*s %s %s\n", UT_NAMESIZE, "Login", MAXREALNAME,
- "Name", "TTY Idle Login Time",
+ "Name", "TTY Idle Login Time",
oflag ? " Office Office Phone" : " Where");
for (sflag = R_FIRST;; sflag = R_NEXT) {
@@ -104,12 +104,12 @@ sflag_print()
(void)putchar(w->info == LOGGEDIN && !w->writable ?
'*' : ' ');
if (*w->tty)
- (void)printf("%-3.3s ",
+ (void)printf("%-2.2s ",
(strncmp(w->tty, "tty", 3)
&& strncmp(w->tty, "cua", 3))
? w->tty : w->tty + 3);
else
- (void)printf(" ");
+ (void)printf(" ");
if (w->info == LOGGEDIN) {
stimeprint(w);
(void)printf(" ");
@@ -133,7 +133,7 @@ office: if (oflag) {
else if (pn->officephone)
(void)printf(" %-10.10s", " ");
if (pn->officephone)
- (void)printf(" %-.13s",
+ (void)printf(" %-.15s",
prphone(pn->officephone));
} else
(void)printf(" %.*s", MAXHOSTNAME, w->host);