projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Treewide: do NUL-termination correctly
[collectd.git]
/
src
/
cgroups.c
diff --git
a/src/cgroups.c
b/src/cgroups.c
index
7f24d12
..
9304216
100644
(file)
--- a/
src/cgroups.c
+++ b/
src/cgroups.c
@@
-112,7
+112,7
@@
static int read_cpuacct_procs(const char *dirname, char const *cgroup_name,
/* Strip colon off the first column, if found */
if (key[key_len - 1] == ':')
- key[key_len - 1] =
0
;
+ key[key_len - 1] =
'\0'
;
status = parse_value(fields[1], &value, DS_TYPE_DERIVE);
if (status != 0)