mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 05:38:14 +00:00
fix crash when no newline at the end of config file.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@550 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
552f55f00a
commit
968171e48f
1 changed files with 1 additions and 1 deletions
|
|
@ -185,7 +185,7 @@ void lp_config_parse(LpConfig *lpconfig){
|
|||
|
||||
pos1++;
|
||||
pos2=strchr(pos1,'\n');
|
||||
if (pos2==NULL) pos2=pos1+strlen(pos2);
|
||||
if (pos2==NULL) pos2=pos1+strlen(pos1);
|
||||
else {
|
||||
*pos2='\0'; /*replace the '\n' */
|
||||
pos2--;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue