net: ipconfig: use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Fri, 1 Jul 2022 10:55:17 +0000 (18:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Jul 2022 09:28:00 +0000 (10:28 +0100)
commit634b215b73073f91523d6a97e547802aa2483ac8
treed79eac03f535ee88520fceb021db7ecacf397467
parent798661c73672797549ba95a8a3da432d32b67178
net: ipconfig: use strscpy to replace strlcpy

The strlcpy should not be used because it doesn't limit the source
length. Preferred is strscpy.

Signed-off-by: XueBing Chen <chenxuebing@jari.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ipconfig.c