diff options
author | Richard Levitte <levitte@openssl.org> | 2001-02-22 14:40:15 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2001-02-22 14:40:15 +0000 |
commit | 627774fd877b9aae249d937afa214d87d8964ae1 (patch) | |
tree | dc66ca3562c02a51b0f2c90d4cd3885c09d849ba /crypto/rand/randfile.c | |
parent | a5bc1e856861b99b99ae215d809ff4d9826ded68 (diff) | |
download | openssl-627774fd877b9aae249d937afa214d87d8964ae1.zip openssl-627774fd877b9aae249d937afa214d87d8964ae1.tar.gz openssl-627774fd877b9aae249d937afa214d87d8964ae1.tar.bz2 |
Since RAND_file_name() uses strlen, make sure the number that's
compared to it has the type size_t. Included the needed headers to
make that happen.
Diffstat (limited to 'crypto/rand/randfile.c')
-rw-r--r-- | crypto/rand/randfile.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index ec137c4..8623e13 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -61,7 +61,7 @@ #include <stdlib.h> #include <string.h> -#include <openssl/e_os.h> +#include "e_os.h" #include <openssl/crypto.h> #include <openssl/rand.h> @@ -194,7 +194,7 @@ err: return (rand_err ? -1 : ret); } -const char *RAND_file_name(char *buf, int size) +const char *RAND_file_name(char *buf, size_t size) { char *s=NULL; char *ret=NULL; |