mirror of https://github.com/xzeldon/htop.git
Meter: do not access RichString internals
Use a temporary local variable
This commit is contained in:
parent
c38819a675
commit
350b48e44c
4
Meter.c
4
Meter.c
|
@ -405,8 +405,8 @@ static void LEDMeterMode_draw(Meter* this, int x, int y, ATTR_UNUSED int w) {
|
||||||
xx += 4;
|
xx += 4;
|
||||||
} else {
|
} else {
|
||||||
#ifdef HAVE_LIBNCURSESW
|
#ifdef HAVE_LIBNCURSESW
|
||||||
out.chptr[i].attr = 0; /* use LED_COLOR from attrset() */
|
const cchar_t wc = { .chars = { c, '\0' }, .attr = 0 }; /* use LED_COLOR from attrset() */
|
||||||
mvadd_wch(yText, xx, &out.chptr[i]);
|
mvadd_wch(yText, xx, &wc);
|
||||||
#else
|
#else
|
||||||
mvaddch(yText, xx, c);
|
mvaddch(yText, xx, c);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue