未验证 提交 3ff0c07b 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3960 from z14git/master

[shell] Ensure that the last char of `char line[]` is '\0'
......@@ -78,7 +78,7 @@ struct finsh_shell
struct finsh_parser parser;
#endif
char line[FINSH_CMD_SIZE];
char line[FINSH_CMD_SIZE + 1];
rt_uint16_t line_position;
rt_uint16_t line_curpos;
......@@ -107,4 +107,3 @@ const char *finsh_get_password(void);
#endif
#endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册