vlib: fix "foo_msg" and "foo_msg_reply" in API message table triggering the "definini... 39/16939/3
authorAndrew Yourtchenko <ayourtch@gmail.com>
Mon, 21 Jan 2019 15:39:33 +0000 (16:39 +0100)
committerDave Wallace <dwallacelf@gmail.com>
Fri, 5 Apr 2019 12:48:09 +0000 (12:48 +0000)
commitae605b89035b26248f245597291474be6ae8ec5e
treedffa12b7de85210c0a1e8b60d566f0b9d4e10b8f
parentf118ea2f38095652f29739052202b49802836fa2
vlib: fix "foo_msg" and "foo_msg_reply" in API message table triggering the "defininion changed" output

strncmp() succeeds if the i+1th message is "foo_reply",
because the comparison terminates early after "foo" -
which triggers the "definition changed" rather than
"only in ..." message.

Fix also the case where i+1th element does not exist.

Change-Id: I127136410491d9dd102e160fd831fcf6f0bd3a9f
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
src/vlibmemory/vlib_api_cli.c