summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2014-04-19 00:41:39 +0000
committerBob Beck <beck@cvs.openbsd.org>2014-04-19 00:41:39 +0000
commitb99ddb4df8b0e933b6392cad7b5acc1dddc794d2 (patch)
tree468786947d8caa1871340bd50d8317ed9a55824f /lib/libcrypto/asn1
parentf4f934735e34f87d82d016e11282cef8f632172d (diff)
use intrinsic strlcpy and strlcat everywhere so we only have one set of
funcitons to check for incorrect use. keep BUF_strlcpy and BUF_strlcat for API comptibility only. ok tedu@
Diffstat (limited to 'lib/libcrypto/asn1')
-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 f3f28369f41..1978e8d3dcf 100644
--- a/lib/libcrypto/asn1/a_time.c
+++ b/lib/libcrypto/asn1/a_time.c
@@ -147,10 +147,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') BUF_strlcpy(str, "19", newlen);
- else BUF_strlcpy(str, "20", newlen);
+ if (t->data[0] >= '5') strlcpy(str, "19", newlen);
+ else strlcpy(str, "20", newlen);
- BUF_strlcat(str, (char *)t->data, newlen);
+ strlcat(str, (char *)t->data, newlen);
return ret;
}