From 86813f2b4b1b83ddf102b8565603a9b307fc2398 Mon Sep 17 00:00:00 2001 From: Kurt Zeilenga Date: Fri, 17 Sep 1999 22:11:08 +0000 Subject: [PATCH] Fix typo in last commit. --- libraries/libldap/tmplout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/libldap/tmplout.c b/libraries/libldap/tmplout.c index 38fa470156..280e762965 100644 --- a/libraries/libldap/tmplout.c +++ b/libraries/libldap/tmplout.c @@ -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 ) { -- 2.39.5