summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-02-13 06:41:44 -0200
committerHisham Muhammad <hisham@gobolinux.org>2018-02-13 06:41:44 -0200
commitb544c22c72613d561180738d8c31c97712b3c0ef (patch)
tree131f338092517943c40c7598de315c166b8ac5ae
parentf37a050d3d0c6928b09d9b19e1283a695c52ccc7 (diff)
Fix issue with small terminals.
Fixes #733.
-rw-r--r--Meter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Meter.c b/Meter.c
index 52dbdd9d..0de0b131 100644
--- a/Meter.c
+++ b/Meter.c
@@ -287,7 +287,7 @@ static void BarMeterMode_draw(Meter* this, int x, int y, int w) {
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