summaryrefslogtreecommitdiffstats
path: root/VNFs
diff options
context:
space:
mode:
authorXavier Simonart <xavier.simonart@intel.com>2019-10-21 16:19:45 +0200
committerXavier Simonart <xavier.simonart@intel.com>2019-10-21 16:19:45 +0200
commitb2a34639125dde4c6da7fc840d25a20c3f5caa90 (patch)
tree7182fb26bac994ea5c4af867bb8316c12950fe41 /VNFs
parentc187a8d297492a2414451d790988dd0ae0088bc6 (diff)
Fix two strncpy issues introduced by fb0c44a8
Change-Id: Ic452b22dc2522a1b49e3091cb25f2784bc505b41 Signed-off-by: Xavier Simonart <xavier.simonart@intel.com>
Diffstat (limited to 'VNFs')
-rw-r--r--VNFs/DPPD-PROX/parse_utils.c2
-rw-r--r--VNFs/DPPD-PROX/prox_args.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/VNFs/DPPD-PROX/parse_utils.c b/VNFs/DPPD-PROX/parse_utils.c
index af98ec2b..786c2141 100644
--- a/VNFs/DPPD-PROX/parse_utils.c
+++ b/VNFs/DPPD-PROX/parse_utils.c
@@ -175,7 +175,7 @@ int parse_vars(char *val, size_t len, const char *name)
return -1;
}
- prox_strncpy(&cur_var[1], &name[start_var], var_len);
+ strncpy(&cur_var[1], &name[start_var], var_len);
cur_var[1 + var_len] = 0;
if (parse_single_var(parsed, sizeof(parsed), cur_var)) {
return -1;
diff --git a/VNFs/DPPD-PROX/prox_args.c b/VNFs/DPPD-PROX/prox_args.c
index 17b3298d..a5d10a60 100644
--- a/VNFs/DPPD-PROX/prox_args.c
+++ b/VNFs/DPPD-PROX/prox_args.c
@@ -242,7 +242,7 @@ const char *get_cfg_dir(void)
while (end > 0 && cfg_file[end] != '/')
end--;
- prox_strncpy(dir, cfg_file, end);
+ strncpy(dir, cfg_file, end);
return dir;
}