X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=VNFs%2FDPPD-PROX%2Ffile_utils.c;h=cf1d3444dc419fd5310af2805d1a268eb907a1e9;hb=91a44713bf414610246df57478b406a5561b725f;hp=b3cf084634dc713162fae56e307588f23fc0acbe;hpb=a0eb3c45ca8a89220caaefa43665a7a1eb6c1933;p=samplevnf.git diff --git a/VNFs/DPPD-PROX/file_utils.c b/VNFs/DPPD-PROX/file_utils.c index b3cf0846..cf1d3444 100644 --- a/VNFs/DPPD-PROX/file_utils.c +++ b/VNFs/DPPD-PROX/file_utils.c @@ -22,6 +22,7 @@ #include "prox_args.h" #include "file_utils.h" +#include "prox_compat.h" static char file_error_string[128] = {0}; @@ -44,7 +45,7 @@ static void resolve_path_cfg_dir(char *file_name, size_t len, const char *path) if (path[0] != '/') snprintf(file_name, len, "%s/%s", get_cfg_dir(), path); else - strncpy(file_name, path, len); + prox_strncpy(file_name, path, len); } long file_get_size(const char *path)