From a90e8ac47c147f707031293f2877248dc33b927f Mon Sep 17 00:00:00 2001 From: Jiri Prokes Date: Wed, 25 Oct 2017 09:59:36 -0700 Subject: [PATCH] One more review comment Signed-off-by: Jiri Prokes --- src/utils_dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils_dpdk.c b/src/utils_dpdk.c index b6056466..fbdcaf88 100644 --- a/src/utils_dpdk.c +++ b/src/utils_dpdk.c @@ -734,7 +734,7 @@ static void dpdk_helper_check_pipe(dpdk_helper_ctx_t *phc) { if (nbytes <= 0) break; buf[nbytes] = '\0'; - sstrncpy(out, buf, (nbytes + 1)); + sstrncpy(out, buf, sizeof(out)); DEBUG("%s: helper process:\n%s", phc->shm_name, out); } } -- 2.11.0