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 f3f28369f4..1978e8d3dc 100644 --- a/src/lib/libcrypto/asn1/a_time.c +++ b/src/lib/libcrypto/asn1/a_time.c | |||
| @@ -147,10 +147,10 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE | |||
| 147 | newlen = t->length + 2 + 1; | 147 | newlen = t->length + 2 + 1; |
| 148 | str = (char *)ret->data; | 148 | str = (char *)ret->data; |
| 149 | /* Work out the century and prepend */ | 149 | /* Work out the century and prepend */ |
| 150 | if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen); | 150 | if (t->data[0] >= '5') strlcpy(str, "19", newlen); |
| 151 | else BUF_strlcpy(str, "20", newlen); | 151 | else strlcpy(str, "20", newlen); |
| 152 | 152 | ||
| 153 | BUF_strlcat(str, (char *)t->data, newlen); | 153 | strlcat(str, (char *)t->data, newlen); |
| 154 | 154 | ||
| 155 | return ret; | 155 | return ret; |
| 156 | } | 156 | } |
