projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' of ssh://jolly@www.mISDN.org/var/git/lcr
[lcr.git]
/
gsm_conf.c
diff --git
a/gsm_conf.c
b/gsm_conf.c
index
08d49dd
..
efde7bd
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 */