diff options
author | Yang Tse <yangsita@gmail.com> | 2012-06-27 19:06:43 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2012-06-27 19:06:43 +0200 |
commit | 3bda1cef92b09f501461cbfe79f465a8bc98e8f3 (patch) | |
tree | 1b98a498ad3b10830fae83fbfc870c20c895aa26 /lib | |
parent | e3014dcc01af5aac535dce21a9840346829463e8 (diff) |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ssluse.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |