diff options
author | Ed Schouten <ed@FreeBSD.org> | 2010-01-10 21:59:06 +0000 |
---|---|---|
committer | Ed Schouten <ed@FreeBSD.org> | 2010-01-10 21:59:06 +0000 |
commit | 85277f1350345587aeed298af00680a8fbda0bd5 (patch) | |
tree | 889818dd299d38f4e60ef82d2b66c612066e4420 /usr.bin/lastcomm/lastcomm.c | |
parent | ef0a73cc770eba0e8c1ddc3bc22e82eb0dfe2851 (diff) | |
download | src-test2-85277f1350345587aeed298af00680a8fbda0bd5.tar.gz src-test2-85277f1350345587aeed298af00680a8fbda0bd5.zip |
Notes
Diffstat (limited to 'usr.bin/lastcomm/lastcomm.c')
-rw-r--r-- | usr.bin/lastcomm/lastcomm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/lastcomm/lastcomm.c b/usr.bin/lastcomm/lastcomm.c index 8c551231a4fc..ab12ec2e4f5f 100644 --- a/usr.bin/lastcomm/lastcomm.c +++ b/usr.bin/lastcomm/lastcomm.c @@ -59,7 +59,6 @@ __FBSDID("$FreeBSD$"); #include <stdlib.h> #include <string.h> #include <unistd.h> -#include <utmp.h> #include "pathnames.h" /*XXX*/#include <inttypes.h> @@ -154,11 +153,11 @@ main(int argc, char *argv[]) if (*argv && !requested(argv, &ab)) continue; - (void)printf("%-*.*s %-7s %-*s %-*s", + (void)printf("%-*.*s %-7s %-*s %-8s", AC_COMM_LEN, AC_COMM_LEN, ab.ac_comm, flagbits(ab.ac_flagx), - UT_NAMESIZE, user_from_uid(ab.ac_uid, 0), - UT_LINESIZE, getdev(ab.ac_tty)); + MAXLOGNAME - 1, user_from_uid(ab.ac_uid, 0), + getdev(ab.ac_tty)); /* user + system time */ |