aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGraham Inggs <ginggs@debian.org>2018-02-17 19:21:52 +0200
committerGraham Inggs <ginggs@debian.org>2018-02-17 19:21:52 +0200
commit3246f46de6879f1c2a0fd056bccda1a4a0400388 (patch)
tree12833519513d83d81969733ce12b7f488db5acf4
parent11f2c5337f5fc504f1676551943986aa5384f0e4 (diff)
downloaddebian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.gz
debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.tar.bz2
debian_htop-3246f46de6879f1c2a0fd056bccda1a4a0400388.zip
Fix issue with small terminals
-rw-r--r--debian/changelog1
-rw-r--r--debian/patches/fix-small-terminals.patch18
-rw-r--r--debian/patches/series1
3 files changed, 20 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index b39ee85..1b36053 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ htop (2.1.0-3) UNRELEASED; urgency=medium
* Update Daniel Lange's email address
* Add debian/clean to remove autogenerated headers
* Refresh debian/patches/601-openvz-new-ctid-vpid.patch
+ * Fix issue with small terminals (Closes: #889693)
-- Graham Inggs <ginggs@debian.org> Mon, 05 Feb 2018 18:07:57 +0000
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

© 2014-2024 Faster IT GmbH | imprint | privacy policy