summaryrefslogtreecommitdiff
path: root/usr.bin/lastcomm/lastcomm.c
diff options
context:
space:
mode:
authorTor Egge <tegge@FreeBSD.org>1997-06-23 22:09:15 +0000
committerTor Egge <tegge@FreeBSD.org>1997-06-23 22:09:15 +0000
commit5b65033c952559685e7a0d83b619592942c9e5ba (patch)
tree04c79b0d414daf30b4ea97ca405524346e6d5c9b /usr.bin/lastcomm/lastcomm.c
parentf62b59b0d86025dfbab1e0b3e67d1b458f043674 (diff)
downloadsrc-test2-5b65033c952559685e7a0d83b619592942c9e5ba.tar.gz
src-test2-5b65033c952559685e7a0d83b619592942c9e5ba.zip
Notes
Diffstat (limited to 'usr.bin/lastcomm/lastcomm.c')
-rw-r--r--usr.bin/lastcomm/lastcomm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c
index 0edb09187483..6d7b034de1e5 100644
--- a/usr.bin/lastcomm/lastcomm.c
+++ b/usr.bin/lastcomm/lastcomm.c
@@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: lastcomm.c,v 1.6 1997/02/22 19:55:33 peter Exp $
+ * $Id: lastcomm.c,v 1.7 1997/03/29 04:30:24 imp Exp $
*/
#ifndef lint
@@ -175,7 +175,8 @@ main(argc, argv)
if (*argv && !requested(argv, &ab))
continue;
- (void)printf("%-*s %-7s %-*s %-*s ",
+ (void)printf("%-*.*s %-7s %-*s %-*s ",
+ fldsiz(acct, ac_comm),
fldsiz(acct, ac_comm), ab.ac_comm,
flagbits(ab.ac_flag),
UT_NAMESIZE, user_from_uid(ab.ac_uid, 0),