]> git.sur5r.net Git - openldap/commitdiff
Fix typo in last commit.
authorKurt Zeilenga <kurt@openldap.org>
Fri, 17 Sep 1999 22:11:08 +0000 (22:11 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 17 Sep 1999 22:11:08 +0000 (22:11 +0000)
libraries/libldap/tmplout.c

index 38fa47015613c1022d91113d483d4b7a6590a876..280e762965661ea36b2368decfdc2fcb777c05d2 100644 (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 ) {