]> 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)
commit18bfa0826b8c13c3b86ea743555002c77f53d35e
treed79eac03f535ee88520fceb021db7ecacf397467
parentc2c5f4ccc978277e3ddb248755660fe036cb16e7
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