From b987a1bbbcabbf183ebe009903778671a1591337 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Tue, 27 Oct 2009 07:53:27 +0100 Subject: 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 --- crypt.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypt.cpp') 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, ':')) -- cgit v1.2.3-55-g7522