diff options
Diffstat (limited to 'VNFs/DPPD-PROX/prox_shared.c')
-rw-r--r-- | VNFs/DPPD-PROX/prox_shared.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/prox_shared.c b/VNFs/DPPD-PROX/prox_shared.c index 890d564b..db381ff5 100644 --- a/VNFs/DPPD-PROX/prox_shared.c +++ b/VNFs/DPPD-PROX/prox_shared.c @@ -23,6 +23,7 @@ #include "log.h" #include "prox_shared.h" #include "prox_globals.h" +#include "prox_compat.h" #define INIT_HASH_TABLE_SIZE 8192 @@ -84,7 +85,7 @@ static int prox_sh_add(struct prox_shared *ps, const char *name, void *data) char key[256] = {0}; int ret; - strncpy(key, name, sizeof(key)); + prox_strncpy(key, name, sizeof(key)); if (ps->size == 0) { prox_sh_create_hash(ps, INIT_HASH_TABLE_SIZE); } @@ -121,7 +122,7 @@ static void *prox_sh_find(struct prox_shared *sh, const char *name) if (!sh->hash) return NULL; - strncpy(key, name, sizeof(key)); + prox_strncpy(key, name, sizeof(key)); ret = rte_hash_lookup_data(sh->hash, key, &data); if (ret >= 0) return data; |