From owner-freebsd-bugs Sun Apr 26 23:00:05 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA21572 for freebsd-bugs-outgoing; Sun, 26 Apr 1998 23:00:05 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: (from gnats@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA21557; Sun, 26 Apr 1998 23:00:03 -0700 (PDT) (envelope-from gnats) Date: Sun, 26 Apr 1998 23:00:03 -0700 (PDT) Message-Id: <199804270600.XAA21557@hub.freebsd.org> To: freebsd-bugs Cc: From: Josh Gilliam Subject: Re: bin/6421: last; add year to 'wtmp begins' Reply-To: Josh Gilliam Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR bin/6421; it has been noted by GNATS. From: Josh Gilliam To: Poul-Henning Kamp 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 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