ipc: use strlcpy where applicable
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 17 Apr 2018 15:46:24 +0000 (16:46 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 23 Apr 2018 20:44:23 +0000 (22:44 +0200)
commit505721e170e9e35f48578f57dd379fa081e88a16
treecb54052dcee59f56c98da71fa0cd6ca673ff4c57
parent7508be4ccead7f092695d5534ab50b3b824baaad
ipc: use strlcpy where applicable

This also silences (or should silence) a few Coverity false
positives where we used strcpy before (Coverity complained
about not checking buffer size, but source buffers were
always known to be sized correctly).

Coverity issue: 260407, 272565, 272582
Fixes: bacaa2754017 ("eal: add channel for multi-process communication")
Fixes: f05e26051c15 ("eal: add IPC asynchronous request")
Fixes: 783b6e54971d ("eal: add synchronous multi-process communication")

Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
Acked-by: Jianfeng Tan <jianfeng.tan@intel.com>
lib/librte_eal/common/eal_common_proc.c