fs: Replace strncat with strlcat
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
parent
325f395300
commit
1955992ae5
@ -228,7 +228,7 @@ static void hostfs_mkpath(FAR struct hostfs_mountpt_s *fs,
|
|||||||
|
|
||||||
if (depth >= 0)
|
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)
|
if (depth >= 0)
|
||||||
{
|
{
|
||||||
strncat(path, &relpath[first], pathlen - strlen(path) - 1);
|
strlcat(path, &relpath[first], pathlen - strlen(path));
|
||||||
}
|
}
|
||||||
|
|
||||||
while (fs->timeout > 0)
|
while (fs->timeout > 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user