mirror of
https://github.com/HASwitchPlate/openHASP.git
synced 2025-07-28 13:46:36 +00:00
Fix possible overflow bug
This commit is contained in:
parent
2ea173fa75
commit
79303a450b
@ -2528,7 +2528,7 @@ void attr_out_json(lv_obj_t* obj, const char* attribute, const char* data)
|
||||
|
||||
void attr_out_int(lv_obj_t* obj, const char* attribute, int32_t val)
|
||||
{
|
||||
char data[9];
|
||||
char data[16];
|
||||
itoa(val, data, sizeof(data));
|
||||
attr_out(obj, attribute, data, true);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user