X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=887b43d87c420d76a823a64452fe788893ff1bd1;hb=d404a0c4f97ef047c2add2e27f2424f01bc45ad7;hp=10cb4f28b81e674c7af566b9bf288851b84d9442;hpb=801389e2a2f0f232f7014702e276c5f992cca723;p=collectd.git diff --git a/src/types_list.c b/src/types_list.c index 10cb4f28..887b43d8 100644 --- a/src/types_list.c +++ b/src/types_list.c @@ -159,7 +159,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)