Signed vs. unsigned problem fix.

Reported by Rob Neff <neff.ra@home.com>
This commit is contained in:
Richard Levitte 2001-03-14 13:32:16 +00:00
parent d58eb72f25
commit c68f050647

View File

@ -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