aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/a_time.c
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2002-11-13 18:09:27 +0000
committerRichard Levitte <levitte@openssl.org>2002-11-13 18:09:27 +0000
commitc112323dd5d107b199a6d951f8be4c882ff0fba1 (patch)
treebeb7a24de5620eeba1fb7088a9c181e4444bad24 /crypto/asn1/a_time.c
parent0709385d3caf380d8506a16cc27573e7d2cf52b5 (diff)
downloadopenssl-c112323dd5d107b199a6d951f8be4c882ff0fba1.tar.gz
This didn't get to the 0.9.8-dev thread...
Diffstat (limited to 'crypto/asn1/a_time.c')
-rw-r--r--crypto/asn1/a_time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_time.c b/crypto/asn1/a_time.c
index 27ddd30899..6e5e9d845d 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");
- strcat(str, (char *)t->data);
+ BUF_strlcat(str, (char *)t->data, t->length+2);
return ret;
}