diff options
author | Xavier Simonart <xavier.simonart@intel.com> | 2019-08-13 10:14:32 -0400 |
---|---|---|
committer | Patrice Buriez <patrice.buriez@intel.com> | 2019-10-08 19:21:34 +0000 |
commit | fb0c44a8e62de7cf06a1ad0c025ac7ecb39cad27 (patch) | |
tree | 4eca4ee386a0de23dc1028a37d90ce2c731f1798 /VNFs/DPPD-PROX/prox_lua_types.c | |
parent | d3552eafaca34771734258f3ff6f4f5f819e72bd (diff) |
Support for recent GCC compiler
This is required for instance on gcc (GCC) 8.2.1 20180905
Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Change-Id: Id86de5d39d77c5cbf168cc51434f436f84376a4c
Diffstat (limited to 'VNFs/DPPD-PROX/prox_lua_types.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_lua_types.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/prox_lua_types.c b/VNFs/DPPD-PROX/prox_lua_types.c index 7a0b6e08..f901b931 100644 --- a/VNFs/DPPD-PROX/prox_lua_types.c +++ b/VNFs/DPPD-PROX/prox_lua_types.c @@ -39,6 +39,7 @@ #include "handle_qinq_encap4.h" #include "toeplitz.h" #include "handle_lb_5tuple.h" +#include "prox_compat.h" #if RTE_VERSION < RTE_VERSION_NUM(1,8,0,0) #define RTE_CACHE_LINE_SIZE CACHE_LINE_SIZE @@ -345,7 +346,7 @@ int lua_to_string(struct lua_State *L, enum lua_place from, const char *name, ch } str = lua_tostring(L, -1); - strncpy(dst, str, size); + prox_strncpy(dst, str, size); lua_pop(L, pop); return 0; |