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:
Jonischkeit Clemens 2020-08-18 11:46:10 +02:00
parent 98e8da8bd3
commit 9a70e43129
No known key found for this signature in database
GPG Key ID: 2BA01592EFACB551
1 changed files with 3 additions and 0 deletions

View File

@ -523,6 +523,9 @@ MeterMode* Meter_modes[] = {
static void BlankMeter_updateValues(Meter* this, char* buffer, int size) {
(void) this; (void) buffer; (void) size;
if (size > 0) {
*buffer = 0;
}
}
static void BlankMeter_display(Object* cast, RichString* out) {