mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:37:44 +00:00
Keymap: Fix map initialization
Correct the number of keymap entries and initialize them. Fixes #1017
This commit is contained in:
parent
1bb98c6950
commit
cdeae8a6f3
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue