修复AT组件在CLI模式下,指令输入过长导致数组越界的问题
This commit is contained in:
parent
c53879151b
commit
9b80e1be25
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue