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/dso/dso_lib.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/dso/dso_lib.c')
| -rw-r--r-- | src/lib/libcrypto/dso/dso_lib.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dso/dso_lib.c b/src/lib/libcrypto/dso/dso_lib.c index 00e65938b9..2f77242d47 100644 --- a/src/lib/libcrypto/dso/dso_lib.c +++ b/src/lib/libcrypto/dso/dso_lib.c | |||
| @@ -373,7 +373,7 @@ int DSO_set_filename(DSO *dso, const char *filename) | |||
| 373 | DSOerr(DSO_F_DSO_SET_FILENAME,ERR_R_MALLOC_FAILURE); | 373 | DSOerr(DSO_F_DSO_SET_FILENAME,ERR_R_MALLOC_FAILURE); |
| 374 | return(0); | 374 | return(0); |
| 375 | } | 375 | } |
| 376 | BUF_strlcpy(copied, filename, strlen(filename) + 1); | 376 | strlcpy(copied, filename, strlen(filename) + 1); |
| 377 | if(dso->filename) | 377 | if(dso->filename) |
| 378 | free(dso->filename); | 378 | free(dso->filename); |
| 379 | dso->filename = copied; | 379 | dso->filename = copied; |
| @@ -432,7 +432,7 @@ char *DSO_convert_filename(DSO *dso, const char *filename) | |||
| 432 | ERR_R_MALLOC_FAILURE); | 432 | ERR_R_MALLOC_FAILURE); |
| 433 | return(NULL); | 433 | return(NULL); |
| 434 | } | 434 | } |
| 435 | BUF_strlcpy(result, filename, strlen(filename) + 1); | 435 | strlcpy(result, filename, strlen(filename) + 1); |
| 436 | } | 436 | } |
| 437 | return(result); | 437 | return(result); |
| 438 | } | 438 | } |
