aboutsummaryrefslogtreecommitdiffstats
path: root/debian/patches/fix-small-terminals.patch
blob: 4f0373280cd776692f72e4044df5d250b9307255 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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;

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