From: Marc Fournier Date: Wed, 31 Dec 2014 13:54:37 +0000 (+0100) Subject: types_list: fix carriage return sign X-Git-Tag: collectd-5.3.2~5^2~3 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=631874e4161f9ac8651158aa81f0e7f8aa896ed9;p=collectd.git types_list: fix carriage return sign Many thanks to @NsLib for mentioning this ! --- 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)