From: Howard Chu Date: Mon, 3 May 2010 05:13:44 +0000 (+0000) Subject: ITS#6541 off-by-one, account for 'Z' being replaced by sign of delta X-Git-Tag: MIGRATION_CVS2GIT~597 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73bb167e746fcaa1cd846173091dd9a817885b50;p=openldap ITS#6541 off-by-one, account for 'Z' being replaced by sign of delta --- diff --git a/libraries/liblutil/utils.c b/libraries/liblutil/utils.c index 0fdd00027c..65a0980a20 100644 --- a/libraries/liblutil/utils.c +++ b/libraries/liblutil/utils.c @@ -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 )