}
if (arg)
- strlcpy(policy->pol_arg, arg, sizeof(policy->pol_arg));
+ strscpy(policy->pol_arg, arg, sizeof(policy->pol_arg));
/* take the started reference */
refcount_set(&policy->pol_start_ref, 1);
if (desc == NULL)
GOTO(fail, rc = -ENOMEM);
- if (strlcpy(desc->pd_name, conf->nc_name, sizeof(desc->pd_name)) >=
+ if (strscpy(desc->pd_name, conf->nc_name, sizeof(desc->pd_name)) >=
sizeof(desc->pd_name)) {
OBD_FREE_PTR(desc);
GOTO(fail, rc = -E2BIG);