diff options
author | Graham Inggs <ginggs@debian.org> | 2018-02-17 19:21:52 +0200 |
---|---|---|
committer | Graham Inggs <ginggs@debian.org> | 2018-02-17 19:21:52 +0200 |
commit | 3246f46de6879f1c2a0fd056bccda1a4a0400388 (patch) | |
tree | 12833519513d83d81969733ce12b7f488db5acf4 /debian/patches | |
parent | 11f2c5337f5fc504f1676551943986aa5384f0e4 (diff) | |
download | debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.gz debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.bz2 debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.zip |
Fix issue with small terminals
Diffstat (limited to 'debian/patches')
-rw-r--r-- | debian/patches/fix-small-terminals.patch | 18 | ||||
-rw-r--r-- | debian/patches/series | 1 |
2 files changed, 19 insertions, 0 deletions
diff --git a/debian/patches/fix-small-terminals.patch b/debian/patches/fix-small-terminals.patch new file mode 100644 index 0000000..4f03732 --- /dev/null +++ b/debian/patches/fix-small-terminals.patch @@ -0,0 +1,18 @@ +Description: Fix issue with small terminals +Bug: https://github.com/hishamhm/htop/issues/733 +Bug-Debian: https://bugs.debian.org/889693 +Origin: upstream,https://github.com/hishamhm/htop/commit/b544c22c72613d561180738d8c31c97712b3c0ef +Author: Hisham Muhammad <hisham@gobolinux.org> +Last-Update: 2018-02-13 + +--- a/Meter.c ++++ b/Meter.c +@@ -287,7 +287,7 @@ + + int blockSizes[10]; + +- xSnprintf(bar, w + 1, "%*s", w, buffer); ++ xSnprintf(bar, w + 1, "%*.*s", w, w, buffer); + + // First draw in the bar[] buffer... + int offset = 0; diff --git a/debian/patches/series b/debian/patches/series index a437421..7b9311f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 601-openvz-new-ctid-vpid.patch +fix-small-terminals.patch |