Fix buffer overflow in battery widget
This commit is contained in:
parent
c679b7e07d
commit
f76a218cdb
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ struct battery_status_state {
|
|||
};
|
||||
|
||||
static void set_battery_symbol(lv_obj_t *label, struct battery_status_state state) {
|
||||
char text[2] = " ";
|
||||
char text[7] = " ";
|
||||
|
||||
uint8_t level = state.level;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue