diff --git a/fs/hostfs/hostfs.c b/fs/hostfs/hostfs.c index 53143a6d309..697a1215486 100644 --- a/fs/hostfs/hostfs.c +++ b/fs/hostfs/hostfs.c @@ -230,7 +230,7 @@ static void hostfs_mkpath(FAR struct hostfs_mountpt_s *fs, if (depth >= 0) { - strlcat(path, &relpath[first], pathlen - strlen(path)); + strlcat(path, &relpath[first], pathlen); } }