summaryrefslogtreecommitdiffstats
path: root/gsm_conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'gsm_conf.c')
-rw-r--r--gsm_conf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gsm_conf.c b/gsm_conf.c
index 08d49dd..efde7bd 100644
--- a/gsm_conf.c
+++ b/gsm_conf.c
@@ -47,10 +47,8 @@ int gsm_conf(struct gsm_conf *gsm_conf)
}
line=0;
- while((fgets(buffer,sizeof(buffer),fp))) {
+ while((GETLINE(buffer, fp))) {
line++;
- buffer[sizeof(buffer)-1]=0;
- if (buffer[0]) buffer[strlen(buffer)-1]=0;
p=buffer;
while(*p <= 32) { /* skip spaces */