]> sjero.net Git - wget/blobdiff - src/retr.c
Fix for bug #24948.
[wget] / src / retr.c
index 9627f9e31320f39ea4f58ad6b32b78b176089e2c..ffa84c38410ef8238ce752714b2c2fb683f23539 100644 (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);
     }