diff options
author | Richard Levitte <levitte@openssl.org> | 2003-01-01 03:41:01 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-01-01 03:41:01 +0000 |
commit | d57084f2358637eb16c5a8249ff37d52d89d294d (patch) | |
tree | 8d9aedaf83da70ab773526fdea646fcca30d19b2 /crypto/asn1 | |
parent | 4a2e36b19e4abf83c860ea8f7ad1ab1e29a9ac02 (diff) |
Make sure the last character of the ASN.1 time string (the 'Z') is copied.
PR: 429
Diffstat (limited to 'crypto/asn1')
-rw-r--r-- | crypto/asn1/a_time.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c index 6e5e9d845d..3a03c9e4e4 100644 --- a/crypto/asn1/a_time.c +++ b/crypto/asn1/a_time.c @@ -152,7 +152,7 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE if (t->data[0] >= '5') strcpy(str, "19"); else strcpy(str, "20"); - BUF_strlcat(str, (char *)t->data, t->length+2); + BUF_strlcat(str, (char *)t->data, t->length+3); /* Include space for a '\0' */ return ret; } |