[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] [PATCH] off-by-one in scroller
From: |
Darshit Shah |
Subject: |
Re: [Bug-wget] [PATCH] off-by-one in scroller |
Date: |
Fri, 28 Nov 2014 05:56:45 +0530 |
Thanks! But it's been fixed in the current git version and will available
in the next release version.
Thanking You,
Darshit Shah
Sent from mobile device. Please excuse my brevity
On 28-Nov-2014 3:13 am, "ed" <address@hidden> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi,
>
> Noticed a cosmetic bug with the scroller.
>
> diff -rupN wget-1.16.orig/src/progress.c wget-1.16/src/progress.c
> - --- wget-1.16.orig/src/progress.c 2014-10-27 08:05:17.000000000
> +0000
> +++ wget-1.16/src/progress.c 2014-11-27 20:29:12.947521383 +0000
> @@ -973,7 +973,7 @@ create_image (struct bar_progress *bp, d
> else
> offset_cols = 0;
> offset_bytes = cols_to_bytes (bp->f_download, offset_cols,
> cols_ret);
> - - bytes_in_filename = cols_to_bytes (bp->f_download + offset_bytes,
> MAX_FILENAME_COLS, cols_ret);
> + bytes_in_filename = cols_to_bytes (bp->f_download + offset_bytes,
> MAX_FILENAME_COLS, cols_ret)+1;
> memcpy (p, bp->f_download + offset_bytes, bytes_in_filename);
> p += bytes_in_filename;
> int padding = MAX_FILENAME_COLS - *cols_ret;
>
>
> - --
> Best regards,
> Ed http://www.s5h.net/
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.12 (GNU/Linux)
>
> iEYEARECAAYFAlR3izEACgkQ4dyr7s6PRYg5mQCfaRnTWXzYvG6KvKAAM5u2lrnx
> R28AniZCeGUIPTYTV0Y0mtwVLCjI/Evl
> =1WZZ
> -----END PGP SIGNATURE-----
>
>