common/octeontx2: add mailbox send and receive support
[dpdk.git] / drivers / event / opdl / opdl_ring.c
index 8aca481..e988f1c 100644 (file)
@@ -7,6 +7,7 @@
 #include <stdint.h>
 #include <stdio.h>
 
+#include <rte_string_fns.h>
 #include <rte_branch_prediction.h>
 #include <rte_debug.h>
 #include <rte_lcore.h>
@@ -944,7 +945,7 @@ opdl_ring_create(const char *name, uint32_t num_slots, uint32_t slot_size,
 
        /* Initialise opdl_ring queue */
        memset(t, 0, sizeof(*t));
-       snprintf(t->name, sizeof(t->name), "%s", name);
+       strlcpy(t->name, name, sizeof(t->name));
        t->socket = socket;
        t->num_slots = num_slots;
        t->mask = num_slots - 1;