diff options
-rw-r--r-- | networking/wget.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/wget.c b/networking/wget.c index 64553d49a..ad1770b58 100644 --- a/networking/wget.c +++ b/networking/wget.c | |||
@@ -462,7 +462,7 @@ static void NOINLINE retrieve_file_data(FILE *dfp, int output_fd) | |||
462 | 462 | ||
463 | rdsz = sizeof(buf); | 463 | rdsz = sizeof(buf); |
464 | if (G.got_clen) { | 464 | if (G.got_clen) { |
465 | if (G.content_len < sizeof(buf)) { | 465 | if (G.content_len < (off_t)sizeof(buf)) { |
466 | if ((int)G.content_len <= 0) | 466 | if ((int)G.content_len <= 0) |
467 | break; | 467 | break; |
468 | rdsz = (unsigned)G.content_len; | 468 | rdsz = (unsigned)G.content_len; |