projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Auto-Merge pull request #2576 from octo/collectd-5.8
[collectd.git]
/
src
/
utils_dpdk.c
diff --git
a/src/utils_dpdk.c
b/src/utils_dpdk.c
index
b605646
..
fbdcaf8
100644
(file)
--- 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);
}
}