projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3aa3e3
)
wget: fix signedness in the compare (paranoia only, G.content_len is never < 0)
author
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 11 Dec 2009 13:12:28 +0000
(14:12 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Fri, 11 Dec 2009 13:12:28 +0000
(14:12 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
networking/wget.c
patch
|
blob
|
history
diff --git
a/networking/wget.c
b/networking/wget.c
index 64553d49aebd179e7dc23adc51f9323b42398dc5..ad1770b5803acb7a9b9a812b0fb3770936b7a5a0 100644
(file)
--- 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;