aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-03-04 00:12:02 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-03-04 00:12:02 +0000
commit7012a4a291f2480da9e34cbf111dec26226389c2 (patch)
tree1d66d6f2f2f787dfaacfe59c3476f307e20d0ebc /src
parent40ab20a25286ea9fc0e94402ff095cc9fa03a1c5 (diff)
Rene Rebe fixed a -# crash when more data than expected was retrieved.
Diffstat (limited to 'src')
-rw-r--r--src/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index c1317ad27..b37d1dae0 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2610,6 +2610,10 @@ static int myprogress (void *clientp,
curl_off_t point = (curl_off_t)dlnow + (curl_off_t)ulnow +
bar->initial_size; /* we've come this far */
+ if(point > total)
+ /* we have got more than the expected total! */
+ total = point;
+
bar->calls++; /* simply count invokes */
if(total < 1) {