Whamcloud - gitweb
LU-17592 build: kernel 6.8 removed strlcpy()
[fs/lustre-release.git] / libcfs / libcfs / hash.c
index 86f321b..34da19d 100644 (file)
@@ -1068,7 +1068,7 @@ cfs_hash_create(char *name, unsigned cur_bits, unsigned max_bits,
         if (hs == NULL)
                 RETURN(NULL);
 
-       strlcpy(hs->hs_name, name, len);
+       strscpy(hs->hs_name, name, len);
        hs->hs_flags = flags;
 
        kref_init(&hs->hs_refcount);