bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-wget] [PATCH] off-by-one in scroller


From: ed
Subject: [Bug-wget] [PATCH] off-by-one in scroller
Date: Thu, 27 Nov 2014 20:36:01 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

-----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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]