]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5ab485a28baf9203e66d21cbb8c14d18868f0222
treed79eac03f535ee88520fceb021db7ecacf397467
parentaf985941d9c76b79c83d8e43204d807fc1fed980
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