misc: vppctl - fix coverity warning 26/34526/6
authorKlement Sekera <ksekera@cisco.com>
Tue, 16 Nov 2021 11:19:26 +0000 (12:19 +0100)
committerAndrew Yourtchenko <ayourtch@gmail.com>
Fri, 28 Jan 2022 14:36:39 +0000 (14:36 +0000)
commitaa9903cabfd44ed9c88d1f624a39096ff7fee37f
treeedd2e875d8ae034955d8f29251610cdf00dd3080
parent616447c392311791e630a604a07a2c7e47dbb7d6
misc: vppctl - fix coverity warning

Check that provided path fits into defined buffer. Don't write too many
bytes to avoid having an unterminated string.

Type: fix
Fixes: 31f192434660
Signed-off-by: Klement Sekera <ksekera@cisco.com>
Change-Id: I1ea8b6d6a3474c032e542b6980ed14bac72093a8
src/vpp/app/vppctl.c