From 631874e4161f9ac8651158aa81f0e7f8aa896ed9 Mon Sep 17 00:00:00 2001 From: Marc Fournier Date: Wed, 31 Dec 2014 14:54:37 +0100 Subject: [PATCH] types_list: fix carriage return sign Many thanks to @NsLib for mentioning this ! --- src/types_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0