Replace all strncpy with strlcpy

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao
2023-03-06 01:26:18 +08:00
committed by Petro Karashchenko
parent 7c37421266
commit 73701cd7cd
35 changed files with 78 additions and 121 deletions

View File

@@ -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);
}
/****************************************************************************