aboutsummaryrefslogtreecommitdiffstats
path: root/vpp
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-11-09 11:28:36 -0500
committerDave Barach <dave@barachs.net>2016-11-09 11:29:58 -0500
commit8d2e0e02433b0097898c332aa0aeedb34c223a6f (patch)
treece77af48df355d3de6bafe4837cc93440e02f5cc /vpp
parent8c83ef01c42ad218ec2803a790625085702cd38a (diff)
Fix a batch of coverity warnings, VPP-486
Change-Id: I0379844824b4c2eb42588d0fb8e1a7eb441e923f Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp')
-rw-r--r--vpp/vpp-api/test_client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vpp/vpp-api/test_client.c b/vpp/vpp-api/test_client.c
index d6192497..cb265ee5 100644
--- a/vpp/vpp-api/test_client.c
+++ b/vpp/vpp-api/test_client.c
@@ -878,7 +878,7 @@ connect_unix_tap (test_main_t * tm, char *name)
mp->_vl_msg_id = ntohs (VL_API_TAP_CONNECT);
mp->client_index = tm->my_client_index;
mp->context = 0xdeadbeef;
- clib_memcpy (mp->tap_name, name, strlen (name));
+ strncpy ((char *) mp->tap_name, name, sizeof (mp->tap_name) - 1);
mp->use_random_mac = 1;
vl_msg_api_send_shmem (tm->vl_input_queue, (u8 *) & mp);
}