diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index a92541371..ce1730bd7 100644 --- a/crypto/rand/randfile.c +++ b/crypto/rand/randfile.c @@ -211,7 +211,7 @@ const char *RAND_file_name(char *buf, int size) { if (OPENSSL_issetugid() == 0) s=getenv("HOME"); - if (s != NULL && (strlen(s)+strlen(RFILE)+2 < size)) + if (s != NULL && ((int)(strlen(s)+strlen(RFILE)+2) < size)) { strcpy(buf,s); #ifndef VMS