From: Fan Zhang Date: Fri, 11 Dec 2015 17:19:16 +0000 (+0000) Subject: examples/ip_pipeline: fix buffer copy size X-Git-Tag: spdx-start~7764 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=28dc492941c9b649cbf0d6f16207ccd86f8f98bb;p=dpdk.git examples/ip_pipeline: fix buffer copy size Coverity issue: 107133 Fixes: eb32fe7c5574 ("examples/ip_pipeline: rework initialization parameters") Signed-off-by: Fan Zhang Acked-by: Cristian Dumitrescu --- diff --git a/examples/ip_pipeline/init.c b/examples/ip_pipeline/init.c index bc6d6d945b..186ca03eee 100644 --- a/examples/ip_pipeline/init.c +++ b/examples/ip_pipeline/init.c @@ -1068,7 +1068,7 @@ static void app_pipeline_params_get(struct app_params *app, uint32_t i; uint32_t mempool_id; - strcpy(p_out->name, p_in->name); + snprintf(p_out->name, PIPELINE_NAME_SIZE, "%s", p_in->name); p_out->socket_id = (int) p_in->socket_id;