From 3bda1cef92b09f501461cbfe79f465a8bc98e8f3 Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 27 Jun 2012 19:06:43 +0200 Subject: 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 --- lib/ssluse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ssluse.c b/lib/ssluse.c index 35b0d382a..22d8bcb13 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 */ -- cgit v1.2.3