wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
1_16_stable
Denys Vlasenko 2009-12-11 14:12:28 +01:00
parent a3aa3e3095
commit d2c879da25
1 changed files with 1 additions and 1 deletions

View File

@ -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;