diff options
| author | beck <> | 2014-04-19 00:41:38 +0000 |
|---|---|---|
| committer | beck <> | 2014-04-19 00:41:38 +0000 |
| commit | f15b58ab9c9f635ba829753251c22b3da4683b00 (patch) | |
| tree | 174c4c233f06a12ea563fd4e4c48bc26d4bdede3 /src/lib/libcrypto/x509v3 | |
| parent | 4855ea84e69fe2edcf4d523233d15c950bd77e4d (diff) | |
| download | openbsd-f15b58ab9c9f635ba829753251c22b3da4683b00.tar.gz openbsd-f15b58ab9c9f635ba829753251c22b3da4683b00.tar.bz2 openbsd-f15b58ab9c9f635ba829753251c22b3da4683b00.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')
| -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 | ||
