diff options
author | Dave Barach <dave@barachs.net> | 2020-02-11 10:29:13 -0500 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-02-11 23:11:58 +0000 |
commit | a6ef36b2c25de47824a1b45e147ab2fbf67c3a33 (patch) | |
tree | 01f29603e11b22763a1a539db10975171ad29f00 /src/vlibmemory/socket_api.c | |
parent | 44476c6b271bdebb7458590398b5f140c9a7d353 (diff) |
misc: fix coverity warnings
Type: fix
Ticket: VPP-1837
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I6b1ea13fc83460bf4ee75cb9249d83dddaa64ded
Diffstat (limited to 'src/vlibmemory/socket_api.c')
-rw-r--r-- | src/vlibmemory/socket_api.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/vlibmemory/socket_api.c b/src/vlibmemory/socket_api.c index eb0466dc76d..6238746525a 100644 --- a/src/vlibmemory/socket_api.c +++ b/src/vlibmemory/socket_api.c @@ -469,8 +469,10 @@ vl_api_sockclnt_create_t_handler (vl_api_sockclnt_create_t * mp) hash_foreach_pair (hp, am->msg_index_by_name_and_crc, ({ rp->message_table[i].index = htons(hp->value[0]); - strncpy_s((char *)rp->message_table[i].name, 64 /* bytes of space at dst */, - (char *)hp->key, 64-1 /* chars to copy, without zero byte. */); + (void) strncpy_s((char *)rp->message_table[i].name, + 64 /* bytes of space at dst */, + (char *)hp->key, + 64-1 /* chars to copy, without zero byte. */); i++; })); /* *INDENT-ON* */ |