From e111c92008eddb1ab27bb7f05d116f607c9ab2f7 Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Thu, 7 Feb 2008 00:25:03 -0800 Subject: [PATCH] Remove screenwidth assertion from create_image. --- src/ChangeLog | 6 ++++++ src/progress.c | 2 -- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index b446f04f..c5b2c200 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2008-02-07 Micah Cowan + + * progress.c (create_image): Remove assertion on exceeding + screen width, which given the less-than-robust code there, can + be broken by a number of factors (such as large file downloads). + 2008-02-06 Micah Cowan * progress.c (countcols): Use strlen() when mbtowc or wcwidth diff --git a/src/progress.c b/src/progress.c index edb30530..bbbad179 100644 --- a/src/progress.c +++ b/src/progress.c @@ -1047,8 +1047,6 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done) move_to_end (p); } - assert (p - bp->buffer - bytes_cols_diff - size_grouped_diff <= bp->width); - while (p - bp->buffer - bytes_cols_diff - size_grouped_diff < bp->width) *p++ = ' '; *p = '\0';