Fix for bug #24948.

This commit is contained in:
Micah Cowan 2009-06-15 23:33:41 -07:00
parent 259c560166
commit 4bbcfc2a1d
2 changed files with 8 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2009-06-15 Micah Cowan <micah@cowan.name>
* retr.c (fd_read_body): Make both args to progress_create
consistent, resulting in an accurate progress display. Fixes bug
#24948.
2009-06-14 Micah Cowan <micah@cowan.name>
* Makefile.am (wget_SOURCES): css-tokens.h needs to ship with

View File

@ -226,7 +226,8 @@ fd_read_body (int fd, FILE *out, wgint toread, wgint startpos,
/* If we're skipping STARTPOS bytes, pass 0 as the INITIAL
argument to progress_create because the indicator doesn't
(yet) know about "skipping" data. */
progress = progress_create (skip ? 0 : startpos, startpos + toread);
wgint start = skip ? 0 : startpos;
progress = progress_create (start, start + toread);
progress_interactive = progress_interactive_p (progress);
}