1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

Remove screenwidth assertion from create_image.

This commit is contained in:
Micah Cowan 2008-02-07 00:25:03 -08:00
parent cb7d0840a0
commit e111c92008
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2008-02-07 Micah Cowan <micah@cowan.name>
* 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 <micah@cowan.name> 2008-02-06 Micah Cowan <micah@cowan.name>
* progress.c (countcols): Use strlen() when mbtowc or wcwidth * progress.c (countcols): Use strlen() when mbtowc or wcwidth

View File

@ -1047,8 +1047,6 @@ create_image (struct bar_progress *bp, double dl_total_time, bool done)
move_to_end (p); 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) while (p - bp->buffer - bytes_cols_diff - size_grouped_diff < bp->width)
*p++ = ' '; *p++ = ' ';
*p = '\0'; *p = '\0';