From 6e786098f2b46e00f10a43bd90a0256fa20dc273 Mon Sep 17 00:00:00 2001 From: Kurt Lidl Date: Mon, 14 Mar 2016 22:20:22 +0000 Subject: [PATCH] Do not truncate office phones in finger's summary listing When finger is invoked as as "finger username", it produces the long listing by default, and phones numbers are pretty-printed by the prphone() function. When invoked as just "finger", the same pretty-printing happens, but is truncated at 9 characters. Given the summary listing is already greater than 80 columns, making it even wider is of no harm. Approved by: rpaulo (mentor) Differential Revision: https://reviews.freebsd.org/D5638 --- usr.bin/finger/sprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/finger/sprint.c b/usr.bin/finger/sprint.c index d9a6cef20b3..afbab4e35a8 100644 --- a/usr.bin/finger/sprint.c +++ b/usr.bin/finger/sprint.c @@ -149,7 +149,7 @@ office: else if (pn->officephone) (void)printf(" %-7.7s", " "); if (pn->officephone) - (void)printf(" %-.9s", + (void)printf(" %-.15s", prphone(pn->officephone)); } else (void)printf(" %.*s", MAXHOSTNAME, w->host);