mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2025-12-26 17:18:24 +00:00
修复AT组件在CLI模式下,指令输入过长导致数组越界的问题
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user