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:
parent
cb7d0840a0
commit
e111c92008
@ -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
|
||||||
|
@ -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';
|
||||||
|
Loading…
Reference in New Issue
Block a user