We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b99cde0 commit 5d0d6edCopy full SHA for 5d0d6ed
1 file changed
components/finsh/shell.c
@@ -1202,7 +1202,7 @@ static void finsh_handle_normal_key(char ch)
1202
}
1203
#endif /* FINSH_USING_SNAPSHOT */
1204
1205
- if (shell->cmd_length > FINSH_CMD_SIZE)
+ if (shell->cmd_length >= FINSH_CMD_SIZE)
1206
{
1207
_finsh_clear_command();
1208
rt_kprintf("Command length exceeds the maximum limit!\n");
0 commit comments