projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes and improves parsing of config file.
[lcr.git]
/
route.c
diff --git
a/route.c
b/route.c
index
d47f8c2
..
4fecf38
100644
(file)
--- a/
route.c
+++ b/
route.c
@@
-839,11
+839,9
@@
struct route_ruleset *ruleset_parse(void)
go_leaf:
line[nesting]=0;
go_root:
go_leaf:
line[nesting]=0;
go_root:
- while((
fgets(buffer,sizeof(buffer),
fp[nesting])))
+ while((
GETLINE(buffer,
fp[nesting])))
{
line[nesting]++;
{
line[nesting]++;
- buffer[sizeof(buffer)-1]=0;
- if (buffer[0]) buffer[strlen(buffer)-1]=0;
p = buffer;
/* remove tabs */
p = buffer;
/* remove tabs */