修复AT组件在CLI模式下,指令输入过长导致数组越界的问题

This commit is contained in:
jonas 2021-12-09 18:11:55 +08:00 committed by liuxianliang
parent c53879151b
commit 9b80e1be25
1 changed files with 4 additions and 0 deletions

View File

@ -264,6 +264,10 @@ static void client_cli_parser(at_client_t client)
}
else
{
if(cur_line_len >= FINSH_CMD_SIZE)
{
continue;
}
rt_kprintf("%c", ch);
cur_line[cur_line_len++] = ch;
}