examples/vm_power_manager: ensure domain name is null terminated
authorDaniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Tue, 10 May 2016 15:49:22 +0000 (17:49 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 May 2016 12:48:09 +0000 (14:48 +0200)
commit42b3f505581ce30ef1f83b96409755f70068d2eb
treed96cae59a67d33aff50e30b8257cf231ea72a87f
parentf87a9ddc4af4dcb0c21132a5494b24049d41c19c
examples/vm_power_manager: ensure domain name is null terminated

In add_vm: The string buffer may not have a null terminator if the source
string's length is equal to the buffer size

Coverity issue: 30691
Fixes: e8ae9b662506 ("examples/vm_power: channel manager and monitor in host")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
examples/vm_power_manager/channel_manager.c