mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
Replace all strncpy with strlcpy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:

committed by
Petro Karashchenko

parent
7c37421266
commit
73701cd7cd
@@ -126,7 +126,7 @@ static void nsh_token(FAR struct console_stdio_s *pstate,
|
||||
|
||||
/* Copied the token into the buffer */
|
||||
|
||||
strncpy(buffer, start, buflen);
|
||||
strlcpy(buffer, start, buflen);
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
|
Reference in New Issue
Block a user