]> git.ipfire.org Git - pakfire.git/commit
cli: progressbar: Fix integer underflow
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jan 2025 16:16:42 +0000 (16:16 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 8 Jan 2025 16:16:42 +0000 (16:16 +0000)
commitebdd674177025c1ff14b6881e6fabfe073f619f6
treefdc39363fc5747b4542df099da71995b5752be0e
parentb3b2417110e2ccaecc3ab2a104e4fc2d5d41edf2
cli: progressbar: Fix integer underflow

It could happen that we required more space than had and then the
expandable part of the progressbar became negative.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/cli/lib/progressbar.c