Re: [PATCH] net: caif: use strlcpy() instead of strncpy()

2018-01-09 Thread David Miller
From: Xiongfeng Wang Date: Mon, 8 Jan 2018 19:43:00 +0800 > From: Xiongfeng Wang > > gcc-8 reports > > net/caif/caif_dev.c: In function 'caif_enroll_dev': > ./include/linux/string.h:245:9: warning: '__builtin_strncpy' output may > be truncated copying 15 bytes from a string of length 15 > [-Ws

[PATCH] net: caif: use strlcpy() instead of strncpy()

2018-01-08 Thread Xiongfeng Wang
From: Xiongfeng Wang gcc-8 reports net/caif/caif_dev.c: In function 'caif_enroll_dev': ./include/linux/string.h:245:9: warning: '__builtin_strncpy' output may be truncated copying 15 bytes from a string of length 15 [-Wstringop-truncation] net/caif/cfctrl.c: In function 'cfctrl_linkup_request':