New upstream version 17.11.5
[deb_dpdk.git] / drivers / crypto / scheduler / scheduler_pmd.c
index fcba119..07acd7b 100644 (file)
@@ -37,6 +37,7 @@
 #include <rte_malloc.h>
 #include <rte_cpuflags.h>
 #include <rte_reorder.h>
+#include <rte_string_fns.h>
 
 #include "rte_cryptodev_scheduler.h"
 #include "scheduler_pmd_private.h"
@@ -342,7 +343,7 @@ parse_name_arg(const char *key __rte_unused,
                return -EINVAL;
        }
 
-       strncpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN);
+       strlcpy(params->name, value, RTE_CRYPTODEV_NAME_MAX_LEN);
 
        return 0;
 }