X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Ftypes_list.c;h=887b43d87c420d76a823a64452fe788893ff1bd1;hb=21ba59f8197dba0a72dbf5186bc0a5d7e5074496;hp=10cb4f28b81e674c7af566b9bf288851b84d9442;hpb=4ecefb9fb8183eadee48538553615c0425e51f69;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)