Date: Sun, 26 Apr 1998 08:10:01 -0700 (PDT) From: Poul-Henning Kamp <phk@critter.freebsd.dk> To: freebsd-bugs Subject: Re: bin/6421: last; add year to 'wtmp begins' Message-ID: <199804261510.IAA08493@hub.freebsd.org>
index | next in thread | raw e-mail
The following reply was made to PR bin/6421; it has been noted by GNATS.
From: Poul-Henning Kamp <phk@critter.freebsd.dk>
To: josh@quick.net
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/6421: last; add year to 'wtmp begins'
Date: Sun, 26 Apr 1998 17:04:59 +0200
>--- last.c~ Fri Mar 28 20:30:22 1997
>+++ last.c Sun Apr 26 06:41:34 1998
>@@ -299,7 +299,7 @@
> }
> tm = localtime(&buf[0].ut_time);
> (void) strftime(ct, sizeof(ct), "%c", tm);
>- printf("\nwtmp begins %10.10s %5.5s \n", ct, ct + 11);
>+ printf("\nwtmp begins %10.10s %5.5s %4.4s\n", ct, ct + 11, ct + 20);
> }
Wouldn't
strftime(ct, sizeof(ct), "\nwtmp begins %c", tm);
printf(ct);
make a whole lot more sense ?
--
Poul-Henning Kamp FreeBSD coreteam member
phk@FreeBSD.ORG "Real hackers run -current on their laptop."
"ttyv0" -- What UNIX calls a $20K state-of-the-art, 3D, hi-res color terminal
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804261510.IAA08493>
