projects
/
oweals
/
tinc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix reading configuration files that do not end with a newline. Again.
[oweals/tinc.git]
/
src
/
conf.c
diff --git
a/src/conf.c
b/src/conf.c
index f64fb22127ac018c5a54459b5b64bd8a70599238..ea33e9c38a4c91588aed75a9a7b91587e01d986d 100644
(file)
--- a/
src/conf.c
+++ b/
src/conf.c
@@
-224,7
+224,7
@@
static char *readline(FILE * fp, char *buf, size_t buflen) {
newline = strchr(p, '\n');
if(!newline)
- return
NULL
;
+ return
buf
;
*newline = '\0'; /* kill newline */
if(newline > p && newline[-1] == '\r') /* and carriage return if necessary */