fs: Replace strncat with strlcat

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2023-03-06 01:35:34 +08:00 committed by Alin Jerpelea
parent 325f395300
commit 1955992ae5
2 changed files with 2 additions and 2 deletions

View file

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

View file

@ -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)