aboutsummaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-12-11 14:12:28 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2009-12-11 14:12:28 +0100
commitd2c879da256bee88f35ddf024d0bd46e3fd480d0 (patch)
treead255d89cd7579e6b855f203e955ceecabacf97c /networking/wget.c
parenta3aa3e309506ea96fa8f7546f6b22fa85263a934 (diff)
downloadbusybox-w32-d2c879da256bee88f35ddf024d0bd46e3fd480d0.tar.gz
busybox-w32-d2c879da256bee88f35ddf024d0bd46e3fd480d0.tar.bz2
busybox-w32-d2c879da256bee88f35ddf024d0bd46e3fd480d0.zip
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c2
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;