ncpfs: fix build warning of strncpy
commiteeb234f7f9079648f43e400bd0bfe84a8241a805
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Mar 2019 16:02:50 +0000 (7 17:02 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 07:44:21 +0000 (23 08:44 +0100)
treef8e4c5f2414f7217a7ef32da9a39f2ae1875d5bf
parentc776cff6de5291edffd3f31b4c1750b48756ac48
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