]> git.droids-corp.org - dpdk.git/blobdiff - examples/ip_pipeline/swq.c
examples/ipsec-secgw: support CPU crypto
[dpdk.git] / examples / ip_pipeline / swq.c
index c11bbf27e32de2f228a50231e081be1eb604d974..7e54a1dbfe0428e26a5ba77a40f469a465c2f75b 100644 (file)
@@ -5,6 +5,8 @@
 #include <stdlib.h>
 #include <string.h>
 
+#include <rte_string_fns.h>
+
 #include "swq.h"
 
 static struct swq_list swq_list;
@@ -64,7 +66,7 @@ swq_create(const char *name, struct swq_params *params)
        }
 
        /* Node fill in */
-       strncpy(swq->name, name, sizeof(swq->name));
+       strlcpy(swq->name, name, sizeof(swq->name));
        swq->r = r;
 
        /* Node add to list */