projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f53c8
)
types_list: fix carriage return sign
author
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 31 Dec 2014 13:54:37 +0000
(14:54 +0100)
committer
Marc Fournier
<marc.fournier@camptocamp.com>
Wed, 31 Dec 2014 13:54:37 +0000
(14:54 +0100)
Many thanks to @NsLib for mentioning this !
src/types_list.c
patch
|
blob
|
history
diff --git
a/src/types_list.c
b/src/types_list.c
index
4971417
..
1b0507f
100644
(file)
--- 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)