From d2c879da256bee88f35ddf024d0bd46e3fd480d0 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Fri, 11 Dec 2009 14:12:28 +0100 Subject: [PATCH] wget: fix signedness in the compare (paranoia only, G.content_len is never < 0) Signed-off-by: Denys Vlasenko --- networking/wget.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) 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; -- 2.25.1