strncpy -> strlcpy to properly NUL-terminate the copy of the path
authorop <op@openbsd.org>
Thu, 30 Mar 2023 07:26:15 +0000 (07:26 +0000)
committerop <op@openbsd.org>
Thu, 30 Mar 2023 07:26:15 +0000 (07:26 +0000)
commit3d7ba31d954bb46eab9fcf6282a962b65122567f
tree942c43f7c54e9fd5979fa77a28da3f808c73f58b
parenteb1a962758950770ab86a4fc268e7f6bb4c8d852
strncpy -> strlcpy to properly NUL-terminate the copy of the path

otherwise paths longer than NFILEN (1024) given with -u won't
NUL-terminate `file'.
usr.bin/mg/fileio.c