From 4bbcfc2a1d05c1ad0496c2f8f9e56236e4c76c00 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Mon, 15 Jun 2009 23:33:41 -0700 Subject: [PATCH] Fix for bug #24948. --- src/ChangeLog | 6 ++++++ src/retr.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 2bc9a8ab..8ad1382d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2009-06-15 Micah Cowan + + * 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 * Makefile.am (wget_SOURCES): css-tokens.h needs to ship with diff --git a/src/retr.c b/src/retr.c index 9627f9e3..ffa84c38 100644 --- a/src/retr.c +++ b/src/retr.c @@ -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); } -- 2.39.2