summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 5af4545)
raw | patch | inline | side by side (parent: 5af4545)
author | Jiri Prokes <jirix.x.prokes@intel.com> | |
Wed, 25 Oct 2017 16:59:36 +0000 (09:59 -0700) | ||
committer | Jiri Prokes <jirix.x.prokes@intel.com> | |
Wed, 25 Oct 2017 16:59:36 +0000 (09:59 -0700) |
Signed-off-by: Jiri Prokes <jirix.x.prokes@intel.com>
src/utils_dpdk.c | patch | blob | history |
diff --git a/src/utils_dpdk.c b/src/utils_dpdk.c
index b6056466a0ad8336bdd8035911ff5209c1cf424f..fbdcaf8832a5d843d29cc242318f83e8c1a95109 100644 (file)
--- a/src/utils_dpdk.c
+++ b/src/utils_dpdk.c
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);
}
}