X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=1b0507f4c2f12b6e32310074865c66020d11b019;hb=631874e4161f9ac8651158aa81f0e7f8aa896ed9;hp=49714176374a2979a24e5c161ac6b303d184708f;hpb=b8f53c82e19189ab329bb694ecfdc98044316070;p=collectd.git diff --git a/src/types_list.c b/src/types_list.c index 49714176..1b0507f4 100644 --- a/src/types_list.c +++ b/src/types_list.c @@ -155,7 +155,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)