On Mon, Jan 08, 2018 at 08:40:59PM +0800, Xiongfeng Wang wrote: > From: Xiongfeng Wang <[email protected]> > > gcc-8 reports > > drivers/media/media-device.c: In function 'media_device_get_topology': > ./include/linux/string.h:245:9: warning: '__builtin_strncpy' specified > bound 64 equals destination size [-Wstringop-truncation] > > We need to use strlcpy() to make sure the dest string is nul-terminated. > > Signed-off-by: Xiongfeng Wang <[email protected]>
Acked-by: Sakari Ailus <[email protected]> -- Sakari Ailus e-mail: [email protected]

