bectl(8): Appease clang-scan
Use strlcpy instead of a plain strcpy
This commit is contained in:
parent
d566a4a452
commit
fd6f511be3
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user