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/rand/randfile.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/rand/randfile.c')
-rw-r--r-- | src/lib/libcrypto/rand/randfile.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/libcrypto/rand/randfile.c b/src/lib/libcrypto/rand/randfile.c index 2525804668..5326f710c5 100644 --- a/src/lib/libcrypto/rand/randfile.c +++ b/src/lib/libcrypto/rand/randfile.c | |||
@@ -142,7 +142,7 @@ err: | |||
142 | 142 | ||
143 | const char *RAND_file_name(char *buf, size_t size) | 143 | const char *RAND_file_name(char *buf, size_t size) |
144 | { | 144 | { |
145 | if (BUF_strlcpy(buf,"/dev/urandom",size) >= size) | 145 | if (strlcpy(buf,"/dev/urandom",size) >= size) |
146 | return(NULL); | 146 | return(NULL); |
147 | return buf; | 147 | return buf; |
148 | } | 148 | } |