summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1998-05-03 23:19:15 +0000
committersteve <steve@FreeBSD.org>1998-05-03 23:19:15 +0000
commita0bf7cf6b60b1eab7dc09a7fdfde9bcf6e52a329 (patch)
treed2e46cc763b5e21c5c034a848c62b493c5fec366 /usr.bin
parent0db69331c51aa79fdb44d8972c72df545f021f1d (diff)
downloadFreeBSD-src-a0bf7cf6b60b1eab7dc09a7fdfde9bcf6e52a329.zip
FreeBSD-src-a0bf7cf6b60b1eab7dc09a7fdfde9bcf6e52a329.tar.gz
Add the year to the 'wtmp begins...' line.
PR: 6421 Submitted by: phk
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/last/last.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/last/last.c b/usr.bin/last/last.c
index 9dea466..9c16bff 100644
--- a/usr.bin/last/last.c
+++ b/usr.bin/last/last.c
@@ -298,8 +298,8 @@ wtmp()
}
}
tm = localtime(&buf[0].ut_time);
- (void) strftime(ct, sizeof(ct), "%c", tm);
- printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
+ (void) strftime(ct, sizeof(ct), "\nwtmp begins %c\n", tm);
+ printf(ct);
}
/*
OpenPOWER on IntegriCloud