]> git.droids-corp.org - dpdk.git/blobdiff - lib/librte_distributor/rte_distributor_v20.c
timer: fix pointer to local outside scope
[dpdk.git] / lib / librte_distributor / rte_distributor_v20.c
index 9566b53f2b39d4f0613fe7aea4819c4e9a1d3f74..cd59407139d614cc174896f741ca6fbb09773dc6 100644 (file)
@@ -386,7 +386,7 @@ rte_distributor_create_v20(const char *name,
        }
 
        d = mz->addr;
-       snprintf(d->name, sizeof(d->name), "%s", name);
+       strlcpy(d->name, name, sizeof(d->name));
        d->num_workers = num_workers;
 
        distributor_list = RTE_TAILQ_CAST(rte_distributor_tailq.head,