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:
Denys Vlasenko 2009-12-11 14:12:28 +01:00
parent a3aa3e3095
commit d2c879da25

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;