X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fip_pipeline%2Fswq.c;h=7e54a1dbfe0428e26a5ba77a40f469a465c2f75b;hb=ef853f1fd97937e6a873bcb47aa71c9ece46f140;hp=c11bbf27e32de2f228a50231e081be1eb604d974;hpb=8245472c58c898f1bc2b30058b0f159e9ab2bb3f;p=dpdk.git diff --git a/examples/ip_pipeline/swq.c b/examples/ip_pipeline/swq.c index c11bbf27e3..7e54a1dbfe 100644 --- a/examples/ip_pipeline/swq.c +++ b/examples/ip_pipeline/swq.c @@ -5,6 +5,8 @@ #include #include +#include + #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 */