X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fdaemon%2Ftypes_list.c;h=4023a8f609759920d18bcdb4503c295a7f70be57;hb=6a68a39a2c6987fdcc94fb1bdd9cc8f598fd9478;hp=b3cb8cf8e7592ca862da720bba8513695190677d;hpb=6299d39b903cb87a3db5b6d2148a2d717754a30a;p=collectd.git diff --git a/src/daemon/types_list.c b/src/daemon/types_list.c index b3cb8cf8..4023a8f6 100644 --- a/src/daemon/types_list.c +++ b/src/daemon/types_list.c @@ -29,6 +29,7 @@ #include "plugin.h" #include "configfile.h" +#include "types_list.h" static int parse_ds (data_source_t *dsrc, char *buf, size_t buf_len) { @@ -164,7 +165,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)