Date: 15 Jan 1999 20:37:11 -0600 From: Dave Marquardt <marquard@zilker.net> To: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/9503: PicoBSD's simple_httpd is not Y2K compliant Message-ID: <851zkwrlig.fsf@localhost.zilker.net> In-Reply-To: Peter Jeremy's message of "Fri, 15 Jan 1999 16:24:54 %2B1100" References: <99Jan15.162421est.40346@border.alcanet.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Peter Jeremy <peter.jeremy@auss2.alcatel.com.au> writes: > >Fix: > > --- /3.0/src/release/picobsd/tinyware/simple_httpd/simple_httpd.c Fri Aug 28 03:38:45 1998 > +++ ./simple_httpd.c Fri Jan 15 14:46:37 1999 > @@ -349,6 +349,8 @@ > struct tm *t; > time(&now); > t = localtime(&now); > + if (t->tm_year >= 100) > + t->tm_year += 1900; Why bother with the if ? Why not just add 1900. -Dave 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?851zkwrlig.fsf>