* src/progress.c (dot_draw): Avoid integer overflow

This commit is contained in:
Tim Rühsen 2019-12-12 16:07:08 +01:00
parent 03a8e59d85
commit 61b8078672

View File

@ -386,6 +386,7 @@ dot_draw (void *progress)
++dp->dots;
if (dp->dots >= opt.dots_in_line)
{
if (dp->rows < INT_MAX)
++dp->rows;
dp->dots = 0;