summaryrefslogtreecommitdiffstats
path: root/crypt.cpp
diff options
context:
space:
mode:
authorAndreas Eversberg2009-10-27 07:53:27 +0100
committerAndreas Eversberg2009-10-27 07:53:27 +0100
commitb987a1bbbcabbf183ebe009903778671a1591337 (patch)
treec1cb7f202d4edb4bd5d8787047cfb12f6316be76 /crypt.cpp
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 'crypt.cpp')
-rw-r--r--crypt.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypt.cpp b/crypt.cpp
index ee8e7cc..44e901c 100644
--- a/crypt.cpp
+++ b/crypt.cpp
@@ -216,7 +216,7 @@ static unsigned int get_bogomips(void)
}
fduse++;
buffer[sizeof(buffer-1)] = '\0';
- while(fgets(buffer, sizeof(buffer)-1, fp)) {
+ while(GETLINE(buffer, fp)) {
if (!!strncmp(buffer, "bogomips", 8))
continue;
if (!strchr(buffer, ':'))