diff options
author | beck <> | 2014-04-19 00:41:38 +0000 |
---|---|---|
committer | beck <> | 2014-04-19 00:41:38 +0000 |
commit | 73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b (patch) | |
tree | 174c4c233f06a12ea563fd4e4c48bc26d4bdede3 /src/lib/libcrypto/x509v3/v3_info.c | |
parent | 9711ef8d33453c62ae27f8ead4f6eeb7cdae136b (diff) | |
download | openbsd-73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b.tar.gz openbsd-73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b.tar.bz2 openbsd-73628bf3ecdcfc6ecfa2f0cb67009a8548e6659b.zip |
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 'src/lib/libcrypto/x509v3/v3_info.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_info.c b/src/lib/libcrypto/x509v3/v3_info.c index 2b290ca00c..c9d6c97b51 100644 --- a/src/lib/libcrypto/x509v3/v3_info.c +++ b/src/lib/libcrypto/x509v3/v3_info.c | |||
@@ -121,9 +121,9 @@ static STACK_OF(CONF_VALUE) *i2v_AUTHORITY_INFO_ACCESS(X509V3_EXT_METHOD *method | |||
121 | ERR_R_MALLOC_FAILURE); | 121 | ERR_R_MALLOC_FAILURE); |
122 | return NULL; | 122 | return NULL; |
123 | } | 123 | } |
124 | BUF_strlcpy(ntmp, objtmp, nlen); | 124 | strlcpy(ntmp, objtmp, nlen); |
125 | BUF_strlcat(ntmp, " - ", nlen); | 125 | strlcat(ntmp, " - ", nlen); |
126 | BUF_strlcat(ntmp, vtmp->name, nlen); | 126 | strlcat(ntmp, vtmp->name, nlen); |
127 | free(vtmp->name); | 127 | free(vtmp->name); |
128 | vtmp->name = ntmp; | 128 | vtmp->name = ntmp; |
129 | 129 | ||