From 73bb167e746fcaa1cd846173091dd9a817885b50 Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 3 May 2010 05:13:44 +0000 Subject: [PATCH] ITS#6541 off-by-one, account for 'Z' being replaced by sign of delta --- libraries/liblutil/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ) -- 2.39.5