summaryrefslogtreecommitdiffstats
path: root/interface.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 /interface.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 'interface.c')
-rw-r--r--interface.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/interface.c b/interface.c
index 42f409c..8e21c75 100644
--- a/interface.c
+++ b/interface.c
@@ -1148,9 +1148,7 @@ struct interface *read_interfaces(void)
}
line=0;
- while((fgets(buffer,sizeof(buffer),fp))) {
- buffer[sizeof(buffer)-1]=0;
- if (buffer[0]) buffer[strlen(buffer)-1]=0;
+ while((GETLINE(buffer, fp))) {
p=buffer;
line++;