ncpfs: fix build warning of strncpy
commit675fd5a6814aade5ceb9f14e4eca9a3099fe922b
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2019 16:02:50 +0000 (7 17:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 Mar 2019 21:04:52 +0000 (13 14:04 -0700)
tree4788c7aa7d1620152be55ee7dca0d6f8bd17c95b
parent8c09b19974ee35c72699862719b6d6035945013f
ncpfs: fix build warning of strncpy

Not upstream as ncpfs is long deleted.

Fix up two strncpy build warnings in ncp_get_charsets() by using strscpy
and the max size of the array.

It's not like anyone uses this code anyway, and this gets rid of two
build warnings so that we can see real warnings as they pop up over
time.

Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ncpfs/ioctl.c