summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/prox_lua_types.c
diff options
context:
space:
mode:
Diffstat (limited to 'VNFs/DPPD-PROX/prox_lua_types.c')
-rw-r--r--VNFs/DPPD-PROX/prox_lua_types.c3
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;