On 3/19/18 10:56 AM, Stephen Hemminger wrote:
> Fixes warnings about strncpy size by using strlcpy.
> 
> tunnel.c: In function ‘tnl_gen_ioctl’:
> tunnel.c:145:2: warning: ‘strncpy’ specified bound 16 equals destination size 
> [-Wstringop-truncation]
>   strncpy(ifr.ifr_name, name, IFNAMSIZ);
>   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Signed-off-by: Stephen Hemminger <step...@networkplumber.org>
> ---
>  ip/tunnel.c | 12 ++++++------
>  1 file changed, 6 insertions(+), 6 deletions(-)
> 

Acked-by: David Ahern <dsah...@gmail.com>

Reply via email to