net: ip_tunnel: use strscpy to replace strlcpy
authorXueBing Chen <chenxuebing@jari.cn>
Mon, 11 Jul 2022 13:55:37 +0000 (21:55 +0800)
committerJakub Kicinski <kuba@kernel.org>
Wed, 13 Jul 2022 01:31:57 +0000 (18:31 -0700)
commit512b2dc48e8b01ffb6ef68c0c7ba69b5d91cab46
tree4ce28eaebd3977baab9841fb7c84362b82f8b3ae
parent536a6c8e05f95e3d1118c40ae8b3022ee2d05d52
net: ip_tunnel: 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>
Link: https://lore.kernel.org/r/2a08f6c1.e30.181ed8b49ad.Coremail.chenxuebing@jari.cn
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/ip_tunnel.c