Date: Sun, 26 Apr 1998 23:00:03 -0700 (PDT) From: Josh Gilliam <josh@quick.net> To: freebsd-bugs Subject: Re: bin/6421: last; add year to 'wtmp begins' Message-ID: <199804270600.XAA21557@hub.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/6421; it has been noted by GNATS. From: Josh Gilliam <josh@quick.net> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: FreeBSD-gnats-submit@FreeBSD.ORG Subject: Re: bin/6421: last; add year to 'wtmp begins' Date: Sun, 26 Apr 1998 22:54:54 -0700 > Wouldn't > > strftime(ct, sizeof(ct), "\nwtmp begins %c", tm); > printf(ct); > > make a whole lot more sense ? Yes. --- last.c~ Fri Mar 28 20:30:22 1997 +++ last.c Sun Apr 26 21:42:26 1998 @@ -298,8 +298,8 @@ } } 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); } /* -- Josh Gilliam <josh@quick.net> 5333 E Los Arboles Ave 1 714 633 6499 Orange CA 92869-4216 USA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804270600.XAA21557>