提交 ba20a00e 编写于 作者: L liruncong

_sys_command_string返回值错误,no support时cmd为随机数据,可能导致c库初始化时在此函数返回处死循环或跑飞.

上级 b1bbf434
......@@ -249,7 +249,7 @@ int _sys_tmpnam(char *name, int fileno, unsigned maxlength)
char *_sys_command_string(char *cmd, int len)
{
/* no support */
return cmd;
return RT_NULL;
}
/* This function writes a character to the console. */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册