From a0bf7cf6b60b1eab7dc09a7fdfde9bcf6e52a329 Mon Sep 17 00:00:00 2001 From: steve Date: Sun, 3 May 1998 23:19:15 +0000 Subject: Add the year to the 'wtmp begins...' line. PR: 6421 Submitted by: phk --- usr.bin/last/last.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/last/last.c') 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); } /* -- cgit v1.1