summaryrefslogtreecommitdiff
path: root/networking/wget.c
diff options
context:
space:
mode:
authorDenis Vlasenko2006-11-24 14:53:18 +0000
committerDenis Vlasenko2006-11-24 14:53:18 +0000
commitcf30cc82a343802b601f01ae153916887f11eb7b (patch)
treedd5af380364efe67c7bd302d6c1c6d70f303f959 /networking/wget.c
parent376ce1e775a97a01f1c454497fbe34d326043328 (diff)
downloadbusybox-cf30cc82a343802b601f01ae153916887f11eb7b.zip
busybox-cf30cc82a343802b601f01ae153916887f11eb7b.tar.gz
header_verbose_list: stop truncating file size in listing
Diffstat (limited to 'networking/wget.c')
-rw-r--r--networking/wget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/networking/wget.c b/networking/wget.c
index f9a9462..5a547ce 100644
--- a/networking/wget.c
+++ b/networking/wget.c
@@ -287,7 +287,7 @@ int wget_main(int argc, char **argv)
#endif
if (beg_range)
- fprintf(sfp, "Range: bytes=%"OFF_FMT"-\r\n", beg_range);
+ fprintf(sfp, "Range: bytes=%"OFF_FMT"d-\r\n", beg_range);
#if ENABLE_FEATURE_WGET_LONG_OPTIONS
if (extra_headers)
fputs(extra_headers, sfp);
@@ -431,7 +431,7 @@ int wget_main(int argc, char **argv)
dfp = open_socket(&s_in);
if (beg_range) {
- sprintf(buf, "REST %"OFF_FMT, beg_range);
+ sprintf(buf, "REST %"OFF_FMT"d", beg_range);
if (ftpcmd(buf, NULL, sfp, buf) == 350)
content_len -= beg_range;
}