summaryrefslogtreecommitdiffstats
path: root/route.c
diff options
context:
space:
mode:
authorAndreas Eversberg2009-10-27 07:53:27 +0100
committerAndreas Eversberg2009-10-27 07:53:27 +0100
commitb987a1bbbcabbf183ebe009903778671a1591337 (patch)
treec1cb7f202d4edb4bd5d8787047cfb12f6316be76 /route.c
parentDon't detect tones for SS5, if the minimum noise level is not reached. (diff)
downloadlcr-b987a1bbbcabbf183ebe009903778671a1591337.tar.gz
lcr-b987a1bbbcabbf183ebe009903778671a1591337.tar.xz
lcr-b987a1bbbcabbf183ebe009903778671a1591337.zip
Fixes and improves parsing of config file.
Last character of unterminated line was ignored. Minor bug fix in 2600 Hz pulse dialing. modified: README modified: action_vbox.cpp modified: crypt.cpp modified: extension.c modified: gsm_conf.c modified: interface.c modified: macro.h modified: route.c modified: ss5.cpp modified: ss5.h
Diffstat (limited to 'route.c')
-rw-r--r--route.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/route.c b/route.c
index d47f8c2..4fecf38 100644
--- a/route.c
+++ b/route.c
@@ -839,11 +839,9 @@ struct route_ruleset *ruleset_parse(void)
go_leaf:
line[nesting]=0;
go_root:
- while((fgets(buffer,sizeof(buffer),fp[nesting])))
+ while((GETLINE(buffer, fp[nesting])))
{
line[nesting]++;
- buffer[sizeof(buffer)-1]=0;
- if (buffer[0]) buffer[strlen(buffer)-1]=0;
p = buffer;
/* remove tabs */