summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1/a_time.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-04-08 08:03:16 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-04-08 08:03:16 +0000
commit5a78afb796c71a4c40ab9143bb17ca9cbeb0fd13 (patch)
tree798b4df03722b6dbd2be5083e0b5a7e189c24c25 /lib/libcrypto/asn1/a_time.c
parent7f2dfee3469d0814057ac4a8e518f5ed7ccc34b9 (diff)
merge 0.9.7d
Diffstat (limited to 'lib/libcrypto/asn1/a_time.c')
-rw-r--r--lib/libcrypto/asn1/a_time.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypto/asn1/a_time.c b/lib/libcrypto/asn1/a_time.c
index b8c031fc8f1..159681fbcb0 100644
--- a/lib/libcrypto/asn1/a_time.c
+++ b/lib/libcrypto/asn1/a_time.c
@@ -155,10 +155,10 @@ ASN1_GENERALIZEDTIME *ASN1_TIME_to_generalizedtime(ASN1_TIME *t, ASN1_GENERALIZE
newlen = t->length + 2 + 1;
str = (char *)ret->data;
/* Work out the century and prepend */
- if (t->data[0] >= '5') strlcpy(str, "19", newlen);
- else strlcpy(str, "20", newlen);
+ if (t->data[0] >= '5') BUF_strlcpy(str, "19", newlen);
+ else BUF_strlcpy(str, "20", newlen);
- strlcat(str, (char *)t->data, newlen);
+ BUF_strlcat(str, (char *)t->data, newlen);
return ret;
}