Qian Cai 00ec3ab060 netfilter: ipset: replace a strncpy() with strscpy()
To make overflows as obvious as possible and to prevent code from blithely
proceeding with a truncated string. This also has a side-effect to fix a
compilation warning when using GCC 8.2.1.

net/netfilter/ipset/ip_set_core.c: In function 'ip_set_sockfn_get':
net/netfilter/ipset/ip_set_core.c:2027:3: warning: 'strncpy' writing 32 bytes into a region of size 2 overflows the destination [-Wstringop-overflow=]

Signed-off-by: Qian Cai <cai@gmx.us>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
2018-12-14 00:04:08 +01:00
..
2018-11-08 20:45:04 -08:00
2018-10-23 10:57:06 -07:00
2018-07-24 14:10:42 -07:00
2018-11-08 20:45:04 -08:00
2018-11-10 16:55:11 -08:00
2018-08-13 20:45:49 -07:00
2018-10-22 19:59:20 -07:00
2018-11-04 08:20:09 -08:00
2018-07-24 14:10:42 -07:00
2018-07-24 14:10:42 -07:00