bectl(8): Appease clang-scan

Use strlcpy instead of a plain strcpy
This commit is contained in:
kevans 2018-08-16 17:59:49 +00:00
parent d566a4a452
commit fd6f511be3

View File

@ -153,7 +153,7 @@ jailparam_addarg(char *arg)
val, BE_MAXPATHLEN);
return (false);
}
strcpy(mnt_loc, val);
strlcpy(mnt_loc, val, sizeof(mnt_loc));
}
jailparam_add(name, val);
return (true);