From cdeae8a6f379a3eb6c0dac83b060e0eaf9096832 Mon Sep 17 00:00:00 2001 From: Tibor Nagy Date: Sun, 5 Jan 2020 12:19:07 +0100 Subject: [PATCH] Keymap: Fix map initialization Correct the number of keymap entries and initialize them. Fixes #1017 --- Userland/keymap.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/keymap.cpp b/Userland/keymap.cpp index 02dd838b0f..501fbc4d80 100644 --- a/Userland/keymap.cpp +++ b/Userland/keymap.cpp @@ -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++) {