[component][ulog] Fix the ulog_strcpy function.
This commit is contained in:
parent
5cd3815058
commit
c7daacc96f
@ -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++;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user