From: Yang Tse Date: Wed, 27 Jun 2012 17:06:43 +0000 (+0200) Subject: ssluse.c: fix compiler warning: conversion to 'int' from 'size_t' X-Git-Tag: curl-7_27_0~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3bda1cef92b09f501461cbfe79f465a8bc98e8f3;p=thirdparty%2Fcurl.git ssluse.c: fix compiler warning: conversion to 'int' from 'size_t' Reported by Tatsuhiro Tsujikawa http://curl.haxx.se/mail/lib-2012-06/0371.html --- diff --git a/lib/ssluse.c b/lib/ssluse.c index 35b0d382ae..22d8bcb13f 100644 --- a/lib/ssluse.c +++ b/lib/ssluse.c @@ -2786,7 +2786,7 @@ void Curl_ossl_random(struct SessionHandle *data, unsigned char *entropy, size_t length) { Curl_ossl_seed(data); /* Initiate the seed if not already done */ - RAND_bytes(entropy, length); + RAND_bytes(entropy, curlx_uztosi(length)); } void Curl_ossl_md5sum(unsigned char *tmp, /* input */