banner(6): Squash a harmless coverity warning
authorcem <cem@FreeBSD.org>
Thu, 13 Apr 2017 23:22:18 +0000 (23:22 +0000)
committercem <cem@FreeBSD.org>
Thu, 13 Apr 2017 23:22:18 +0000 (23:22 +0000)
commit685228f3659e80e2dfc0559ad6eac5abe9bd34a0
tree15625dc911180278d73b4a13d8e05aca32bb62a6
parentbbab6bb56eee7b7babc4f3fd1164c547a76a75e9
banner(6): Squash a harmless coverity warning

The destination buffer is sized as the sum of program argument lengths, so
it has plenty of room for *argv.  Appease Coverity by using strlcpy instead
of strcpy.  Similar to a nearby cleanup performed in r316500.

No functional change.

Reported by: Coverity (CWE-120)
CID: 1006703
Sponsored by: Dell EMC Isilon
usr.bin/banner/banner.c