main: use strncpy instead of strcpy

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2021-03-04 11:04:48 +01:00
parent c1fd9a7e0b
commit 44561349cd
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED

2
main.c
View File

@ -5021,7 +5021,7 @@ do_fsync (fuse_req_t req, fuse_ino_t ino, int datasync, int fd)
}
if (fd < 0)
strcpy (path, node->path);
strncpy (path, node->path, PATH_MAX);
if (! do_fsync)
{