summaryrefslogtreecommitdiffstats
path: root/crypto/ts/ts_rsp_sign.c
diff options
context:
space:
mode:
authorMichal Bozon <bozon@cesnet.cz>2014-11-12 15:59:04 +0000
committerMatt Caswell <matt@openssl.org>2014-11-12 20:51:41 +0000
commitae64fb528ecc1bc0452842c5217e5989df1177ad (patch)
treeefe778682bf3e8feeeeb3b9a71d1d3f2e664884d /crypto/ts/ts_rsp_sign.c
parente04d426bf98ebb22abf0f15b6f09d333a6e8b2ad (diff)
Correct timestamp output when clock_precision_digits > 0
PR#3535 Reviewed-by: Stephen Henson <steve@openssl.org>
Diffstat (limited to 'crypto/ts/ts_rsp_sign.c')
-rw-r--r--crypto/ts/ts_rsp_sign.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/ts/ts_rsp_sign.c b/crypto/ts/ts_rsp_sign.c
index df09e17834..3c48352366 100644
--- a/crypto/ts/ts_rsp_sign.c
+++ b/crypto/ts/ts_rsp_sign.c
@@ -971,7 +971,7 @@ TS_RESP_set_genTime_with_precision(ASN1_GENERALIZEDTIME *asn1_time,
if (precision > 0)
{
/* Add fraction of seconds (leave space for dot and null). */
- BIO_snprintf(p, 2 + precision, ".%ld", usec);
+ BIO_snprintf(p, 2 + precision, ".%06ld", usec);
/* We cannot use the snprintf return value,
because it might have been truncated. */
p += strlen(p);