RaXl NXXez de Arenas Coronado <[EMAIL PROTECTED]> writes:
> I've downloaded, compiled and installed the new wget 1.8, and I have
> a problem with the new progress bar (the default one).
>
> When downloading, at some random point, an assertion fails at
> file progress.c, line 673 (function create_image). The assertion is
>
> 'p - bp->buffer <= bp->width'
Yes; thanks for the report. This patch should fix the problem:
Index: src/progress.c
===================================================================
RCS file: /pack/anoncvs/wget/src/progress.c,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- src/progress.c 2001/12/09 01:24:40 1.21
+++ src/progress.c 2001/12/09 04:51:40 1.22
@@ -647,7 +647,7 @@
/* Hours not printed: pad with three spaces (two digits and
colon). */
APPEND_LITERAL (" ");
- else if (eta_hrs >= 10)
+ else if (eta_hrs < 10)
/* Hours printed with one digit: pad with one space. */
*p++ = ' ';
else