This didn't get to the 0.9.8-dev thread...
[openssl.git] / crypto / asn1 / a_time.c
index 27ddd30899bdcfa29dbfe34d7193bdaa69e5b140..6e5e9d845dc31afaba84798cc7f7f36ce43691ed 100644 (file)
@@ -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;
        }