Fix typo in last commit.

This commit is contained in:
Kurt Zeilenga 1999-09-17 22:11:08 +00:00
parent c35d53d6e0
commit 86813f2b4b

View file

@ -909,11 +909,11 @@ time2text( char *ldtimestr, int dateonly )
/* POSIX says tm_year should be year - 1900 */
t.tm_year = 100 * GET2BYTENUM( p ) - 1900;
p += 2;
t.tm_year = GET2BYTENUM( p ); p += 2;
t.tm_year += GET2BYTENUM( p ); p += 2;
} else {
/* came without a century */
t.tm_year = GET2BYTENUM( p ); p += 2;
t.tm_year = GET2BYTENUM( p ); p += 2;
/* Y2K hack - 2 digit years < 70 are 21st century */
if( t.tm_year < 70 ) {