Fix for string terminator overwriting

This commit is contained in:
mrkusypl committed 2026-04-26 02:24:27 +02:00
1 parent 8977a0a112
commit a3c03f18f0
1 file changed
+3
+3
View File
@@ -1494,6 +1494,9 @@ static void MENU_Key_0_to_9(KEY_Code_t Key, bool bKeyPressed, bool bKeyHeld)
if (UI_MENU_GetCurrentMenuId() == MENU_MEM_NAME && edit_index >= 0)
{ // currently editing the channel name
if (edit_index >= 10)
return;
uint8_t key_idx = Key - KEY_0;
if (bKeyHeld)