提交 f0fc4892 编写于 作者: B Bernard Xiong

[finsh] use the macro definition instead of the const number in the code

上级 eefd8728
......@@ -367,7 +367,7 @@ struct finsh_token
int int_value;
long long_value;
} value;
u_char string[128];
u_char string[FINSH_STRING_MAX];
u_char* line;
};
......
......@@ -543,7 +543,7 @@ void finsh_thread_entry(void *parameter)
ch = 0;
shell->line_position ++;
shell->line_curpos++;
if (shell->line_position >= 80)
if (shell->line_position >= FINSH_CMD_SIZE)
{
/* clear command line */
shell->line_position = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册