From 6e29bae51201c28e4d0ffbdbe6f22a67378822e2 Mon Sep 17 00:00:00 2001 From: Shivam7-1 <55046031+Shivam7-1@users.noreply.github.com> Date: Thu, 19 Dec 2024 15:40:27 +0530 Subject: [PATCH] Update-2 nfstest.c --- nfstest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nfstest.c b/nfstest.c index dd3ea62..810092a 100644 --- a/nfstest.c +++ b/nfstest.c @@ -669,7 +669,7 @@ static void nfs_test_fhandlecache_server(int socket_fd, const char *path) p = strrchr(path, '/'); if (p == NULL) - strcpy(dir, "."); + strncpy(dir, "."); else snprintf(dir, p - path + 1, "%s", path);