mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 08:38:38 +08:00
fs: Replace strncat with strlcat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
325f395300
commit
1955992ae5
2 changed files with 2 additions and 2 deletions
|
@ -228,7 +228,7 @@ static void hostfs_mkpath(FAR struct hostfs_mountpt_s *fs,
|
|||
|
||||
if (depth >= 0)
|
||||
{
|
||||
strncat(path, &relpath[first], pathlen - strlen(path) - 1);
|
||||
strlcat(path, &relpath[first], pathlen - strlen(path));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -247,7 +247,7 @@ static void rpmsgfs_mkpath(FAR struct rpmsgfs_mountpt_s *fs,
|
|||
|
||||
if (depth >= 0)
|
||||
{
|
||||
strncat(path, &relpath[first], pathlen - strlen(path) - 1);
|
||||
strlcat(path, &relpath[first], pathlen - strlen(path));
|
||||
}
|
||||
|
||||
while (fs->timeout > 0)
|
||||
|
|
Loading…
Reference in a new issue