Whamcloud - gitweb
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git] / lustre / mgs / mgs_handler.c
index 1cda408..0e15af1 100644 (file)
@@ -743,7 +743,7 @@ static int mgs_extract_fs_pool(char *arg, char *fsname, char *poolname)
        /* Also make sure poolname is not to long. */
        if (strlen(ptr) > LOV_MAXPOOLNAME)
                return -ENAMETOOLONG;
-       strlcpy(poolname, ptr, LOV_MAXPOOLNAME + 1);
+       strscpy(poolname, ptr, LOV_MAXPOOLNAME + 1);
 
        /* Test if fsname is empty */
        len = strlen(arg) - strlen(ptr) - 1;