New upstream version 17.11.5
[deb_dpdk.git] / lib / librte_eal / common / eal_common_options.c
index 996a034..c7eb056 100644 (file)
@@ -232,7 +232,7 @@ eal_plugin_add(const char *path)
                return -1;
        }
        memset(solib, 0, sizeof(*solib));
-       strncpy(solib->name, path, PATH_MAX-1);
+       strlcpy(solib->name, path, PATH_MAX-1);
        solib->name[PATH_MAX-1] = 0;
        TAILQ_INSERT_TAIL(&solib_list, solib, next);