Keymap: Fix map initialization

Correct the number of keymap entries and initialize them.

Fixes #1017
This commit is contained in:
Tibor Nagy 2020-01-05 12:19:07 +01:00 committed by Andreas Kling
parent 1bb98c6950
commit cdeae8a6f3
Notes: sideshowbarker 2024-07-19 10:20:43 +09:00

View file

@ -16,7 +16,7 @@ char* read_map(const JsonObject& json, const String& name)
if (!json.has(name))
return nullptr;
char* map = new char[80];
char* map = new char[0x80]();
auto map_arr = json.get(name).as_array();
for (int i = 0; i < map_arr.size(); i++) {