From 8d79fb08170400008b6f84f090d529564b347692 Mon Sep 17 00:00:00 2001 From: Danil Tolkachev Date: Sun, 21 Jul 2024 09:34:22 +0300 Subject: [PATCH] fix dynamic_keymap_macro_send (#756) --- quantum/dynamic_keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quantum/dynamic_keymap.c b/quantum/dynamic_keymap.c index 3fd939be7c..60401fdcbe 100644 --- a/quantum/dynamic_keymap.c +++ b/quantum/dynamic_keymap.c @@ -494,8 +494,8 @@ void dynamic_keymap_macro_send(uint8_t id) { // We already checked there was a null at the end of // the buffer, so this cannot go past the end while (1) { + memset(data, 0, sizeof(data)); data[0] = eeprom_read_byte(p++); - data[1] = 0; // Stop at the null terminator of this macro string if (data[0] == 0) { break;