This commit is contained in:
2025-03-16 18:37:45 +01:00
parent a678a32f92
commit e8c213678f
+3 -2
View File
@@ -426,8 +426,9 @@ static bool process_command_table(const command_handler_t *table, int table_size
} }
void process_ascii_cmd(RDSModulator* mod, char *str) { void process_ascii_cmd(RDSModulator* mod, char *str) {
char *cmd, *arg, *output; char *cmd, *arg;
memset(output, 0, 255); char output[255];
memset(output, 0, sizeof(output));
uint16_t cmd_len = _strnlen((const char*)str, CTL_BUFFER_SIZE); uint16_t cmd_len = _strnlen((const char*)str, CTL_BUFFER_SIZE);