X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=c0e61c54b0e9e52168c85b31c9cd7bd9b422efde;hp=b3cb8cf8e7592ca862da720bba8513695190677d;hb=ca316d91e178412604ea8462dc60a8bc32cbfc87;hpb=681a607a4b1a95df1d53d3e6922ec70bd52f87cf diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index b3cb8cf8..c0e61c54 100644 --- a/src/daemon/types_list.c +++ b/src/daemon/types_list.c @@ -164,7 +164,7 @@ static void parse_file (FILE *fh) continue; while ((buf_len > 0) && ((buf[buf_len - 1] == '\n') - || (buf[buf_len - 1] == '\n'))) + || (buf[buf_len - 1] == '\r'))) buf[--buf_len] = '\0'; if (buf_len == 0)