mirror of
https://github.com/mirror/wget.git
synced 2025-03-09 09:10:17 +08:00
* src/progress.c (dot_draw): Avoid integer overflow
This commit is contained in:
parent
03a8e59d85
commit
61b8078672
@ -386,7 +386,8 @@ dot_draw (void *progress)
|
||||
++dp->dots;
|
||||
if (dp->dots >= opt.dots_in_line)
|
||||
{
|
||||
++dp->rows;
|
||||
if (dp->rows < INT_MAX)
|
||||
++dp->rows;
|
||||
dp->dots = 0;
|
||||
|
||||
print_row_stats (dp, dp->dltime, false);
|
||||
|
Loading…
Reference in New Issue
Block a user