]> git.sur5r.net Git - openldap/commitdiff
ITS#6541 off-by-one, account for 'Z' being replaced by sign of delta
authorHoward Chu <hyc@openldap.org>
Mon, 3 May 2010 05:13:44 +0000 (05:13 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 3 May 2010 05:13:44 +0000 (05:13 +0000)
libraries/liblutil/utils.c

index 0fdd00027ca4ddae0a42d9f6ca1ce26203b11e1a..65a0980a2092750f20f7354ebc42f3e116d41e6a 100644 (file)
@@ -147,7 +147,7 @@ size_t lutil_localtime( char *s, size_t smax, const struct tm *tm, long delta )
        snprintf( p, smax - 15, "%02ld%02ld", delta / 3600,
                        ( delta % 3600 ) / 60 );
 
-       return ret + 5;
+       return ret + 4;
 }
 
 int lutil_tm2time( struct lutil_tm *tm, struct lutil_timet *tt )