test mbuf attach
[dpdk.git] / lib / librte_pipeline / rte_pipeline.c
index 2c047a8..f5f397d 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;