Signed vs. unsigned problem fix.
authorRichard Levitte <levitte@openssl.org>
Wed, 14 Mar 2001 13:32:16 +0000 (13:32 +0000)
committerRichard Levitte <levitte@openssl.org>
Wed, 14 Mar 2001 13:32:16 +0000 (13:32 +0000)
Reported by Rob Neff <neff.ra@home.com>

crypto/rand/randfile.c

index a92541371fd4aedbb560c9a7be3041cef013b817..ce1730bd7663958592c715a965223bff23f1025f 100644 (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