mirror of
https://github.com/sheumann/hush.git
synced 2024-12-21 23:29:34 +00:00
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a3aa3e3095
commit
d2c879da25
@ -462,7 +462,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd)
|
||||
|
||||
rdsz = sizeof(buf);
|
||||
if (G.got_clen) {
|
||||
if (G.content_len < sizeof(buf)) {
|
||||
if (G.content_len < (off_t)sizeof(buf)) {
|
||||
if ((int)G.content_len <= 0)
|
||||
break;
|
||||
rdsz = (unsigned)G.content_len;
|
||||
|
Loading…
Reference in New Issue
Block a user