mirror of
https://git.busybox.net/busybox
synced 2026-01-31 16:43:21 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue