未验证 提交 99575c43 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #2151 from armink/fix_ulog_strcpy

[component][ulog] Fix the ulog_strcpy function.
......@@ -149,7 +149,7 @@ size_t ulog_strcpy(size_t cur_len, char *dst, const char *src)
while (*src != 0)
{
/* make sure destination has enough space */
if (cur_len++ <= ULOG_LINE_BUF_SIZE)
if (cur_len++ < ULOG_LINE_BUF_SIZE)
{
*dst++ = *src++;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册