summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Simonart <simonartxavier@gmail.com>2022-01-03 15:28:22 +0000
committerXavier Simonart <simonartxavier@gmail.com>2022-01-10 19:41:11 +0000
commit5bde51edbcdbad6c832618da09795ece8522b790 (patch)
treef79217066efd9fe422b622f64954f375532740bb
parent80eea140cb384fdce34d9681a1f0929016ca9b03 (diff)
Fix warning when compiling with ninja
Signed-off-by: Xavier Simonart <simonartxavier@gmail.com> Change-Id: I1d90cf8b06544b9e220726fade506275f872a037
-rw-r--r--VNFs/DPPD-PROX/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/main.c b/VNFs/DPPD-PROX/main.c
index 1a4b92b0..ebb861c0 100644
--- a/VNFs/DPPD-PROX/main.c
+++ b/VNFs/DPPD-PROX/main.c
@@ -856,7 +856,7 @@ static void setup_mempool_for_rx_task(struct lcore_cfg *lconf, struct task_args
sprintf(name, "core_%u_task_%u_pool", lconf->id, targ->id);
}
- snprintf(memzone_name, sizeof(memzone_name)-1, "MP_%s", targ->pool_name);
+ snprintf(memzone_name, sizeof(memzone_name), "MP_%.*s", (int)(sizeof(memzone_name)-4), targ->pool_name);
mz = rte_memzone_lookup(memzone_name);
if (mz != NULL) {