#include "log.h"
#include "prox_shared.h"
#include "prox_globals.h"
+#include "prox_compat.h"
#define INIT_HASH_TABLE_SIZE 8192
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);
}
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;