header_verbose_list: stop truncating file size in listing

This commit is contained in:
Denis Vlasenko
2006-11-24 14:53:18 +00:00
parent 376ce1e775
commit cf30cc82a3
10 changed files with 42 additions and 43 deletions

View File

@@ -149,7 +149,7 @@ int ftp_receive(ftp_host_info_t *server, FILE *control_stream,
}
if (do_continue) {
sprintf(buf, "REST %"OFF_FMT, beg_range);
sprintf(buf, "REST %"OFF_FMT"d", beg_range);
if (ftpcmd(buf, NULL, control_stream, buf) != 350) {
do_continue = 0;
} else {

View File

@@ -889,8 +889,8 @@ static int sendHeaders(HttpResponseNum responseNum)
if (config->ContentLength != -1) { /* file */
strftime(timeStr, sizeof(timeStr), RFC1123FMT, gmtime(&config->last_mod));
len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"\r\n",
timeStr, "Content-length:", (off_t) config->ContentLength);
len += sprintf(buf+len, "Last-Modified: %s\r\n%s %"OFF_FMT"d\r\n",
timeStr, "Content-length:", config->ContentLength);
}
strcat(buf, "\r\n");
len += 2;

View File

@@ -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;
}