minutes fix, courtesy IP Fabrics, Inc.

git-svn-id: https://asn1c.svn.sourceforge.net/svnroot/asn1c/trunk@1408 59561ff5-6e30-0410-9f3c-9617f08c8826
This commit is contained in:
vlm 2010-03-10 23:05:56 +00:00
parent d02b460727
commit e19f685ad7
1 changed files with 1 additions and 1 deletions

View File

@ -666,7 +666,7 @@ asn_time2GT_frac(GeneralizedTime_t *opt_gt, const struct tm *tm, int frac_value,
int ret;
gmtoff %= 86400;
ret = snprintf(p, buf_size - size, "%+03ld%02ld",
gmtoff / 3600, labs(gmtoff % 3600));
gmtoff / 3600, labs(gmtoff % 3600) / 60);
if(ret != 5) {
FREEMEM(buf);
errno = EINVAL;