Fix issue with small terminals.

Fixes #733.
This commit is contained in:
Hisham Muhammad 2018-02-13 06:41:44 -02:00
parent f37a050d3d
commit b544c22c72

View File

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