/* 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;