X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fcgroups.c;h=9304216d39159826845371ccefdd21cc17d9964d;hb=711f5b6c86f51061c21bedcaa46214a01de0125c;hp=7f24d12ed13b1dca9bb5478832809004dc797064;hpb=a0412f28fc15eb04a9a630678a97b6bce2d71fb1;p=collectd.git diff --git a/src/cgroups.c b/src/cgroups.c index 7f24d12e..9304216d 100644 --- 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)