]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_pipeline/rte_pipeline.c
test mbuf attach
[dpdk.git] / lib / librte_pipeline / rte_pipeline.c
index 2c047a8a4115cbe1d0b3ec3314fd27f9f2584c58..f5f397d2925cdc8e5b9725e2806ddad477a11738 100644 (file)
@@ -214,7 +214,7 @@ rte_pipeline_create(struct rte_pipeline_params *params)
        }
 
        /* Save input parameters */
-       snprintf(p->name, RTE_PIPELINE_MAX_NAME_SZ, "%s", params->name);
+       strlcpy(p->name, params->name, RTE_PIPELINE_MAX_NAME_SZ);
        p->socket_id = params->socket_id;
        p->offset_port_id = params->offset_port_id;