bus/vmbus: make sure path is null terminated
authorStephen Hemminger <sthemmin@microsoft.com>
Mon, 6 Aug 2018 18:11:07 +0000 (11:11 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 7 Aug 2018 12:41:47 +0000 (14:41 +0200)
commit5ef90536d748105fcf12fa887347365bdd18e01a
tree40cc20dace97db90c8ddeadd4205d9b0a2bda810
parentbca88be88a6fbfe5bc108693444d2ede5b23bf2b
bus/vmbus: make sure path is null terminated

Use strlcpy rather than strncpy to avoid any issues about
null termination.

Coverity issue 302859
Fixes: 831dba47bd36 ("bus/vmbus: add Hyper-V virtual bus support")

Signed-off-by: Stephen Hemminger <sthemmin@microsoft.com>
drivers/bus/vmbus/linux/vmbus_uio.c