Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 675fd5a6 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman
Browse files

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: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8c09b199
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment