diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/a_time.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_time.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_time.c b/src/lib/libcrypto/asn1/a_time.c index b8c031fc8f..159681fbcb 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
@@ -155,10 +155,10 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE | |||
155 | newlen = t->length + 2 + 1; | 155 | newlen = t->length + 2 + 1; |
156 | str = (char *)ret->data; | 156 | str = (char *)ret->data; |
157 | /* Work out the century and prepend */ | 157 | /* Work out the century and prepend */ |
158 | if (t->data[0] >= '5') strlcpy(str, "19", newlen); | 158 | if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen); |
159 | else strlcpy(str, "20", newlen); | 159 | else BUF_strlcpy(str, "20", newlen); |
160 | 160 | ||
161 | strlcat(str, (char *)t->data, newlen); | 161 | BUF_strlcat(str, (char *)t->data, newlen); |
162 | 162 | ||
163 | return ret; | 163 | return ret; |
164 | } | 164 | } |