From: Richard Levitte Date: Wed, 14 Mar 2001 13:32:16 +0000 (+0000) Subject: Signed vs. unsigned problem fix. X-Git-Tag: OpenSSL_0_9_6a-beta2~25 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c68f0506474b70ba35dd17a4477fb2d15d639bcb;p=oweals%2Fopenssl.git Signed vs. unsigned problem fix. Reported by Rob Neff --- diff --git a/crypto/rand/randfile.c b/crypto/rand/randfile.c index a92541371f..ce1730bd76 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