projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes and improves parsing of config file.
[lcr.git]
/
gsm_conf.c
diff --git
a/gsm_conf.c
b/gsm_conf.c
index
9957b86
..
082a6ed
100644
(file)
--- 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 */