Author: kevans Date: Thu Aug 16 17:59:49 2018 New Revision: 337916 URL: https://svnweb.freebsd.org/changeset/base/337916
Log: bectl(8): Appease clang-scan Use strlcpy instead of a plain strcpy Modified: head/sbin/bectl/bectl_jail.c Modified: head/sbin/bectl/bectl_jail.c ============================================================================== --- head/sbin/bectl/bectl_jail.c Thu Aug 16 17:56:03 2018 (r337915) +++ head/sbin/bectl/bectl_jail.c Thu Aug 16 17:59:49 2018 (r337916) @@ -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); _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"