mirror of https://github.com/xzeldon/htop.git
fixed display of blank bars
The buffer for blank bars was left uninitialized resulting in random looking characters sometimes even overwriting the end of the bar.
This commit is contained in:
parent
98e8da8bd3
commit
9a70e43129
3
Meter.c
3
Meter.c
|
@ -523,6 +523,9 @@ MeterMode* Meter_modes[] = {
|
||||||
|
|
||||||
static void BlankMeter_updateValues(Meter* this, char* buffer, int size) {
|
static void BlankMeter_updateValues(Meter* this, char* buffer, int size) {
|
||||||
(void) this; (void) buffer; (void) size;
|
(void) this; (void) buffer; (void) size;
|
||||||
|
if (size > 0) {
|
||||||
|
*buffer = 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void BlankMeter_display(Object* cast, RichString* out) {
|
static void BlankMeter_display(Object* cast, RichString* out) {
|
||||||
|
|
Loading…
Reference in New Issue