Commit 968171e4 authored by smorlat's avatar smorlat
Browse files

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
parent 552f55f0
No related merge requests found
Showing with 1 addition and 1 deletion
......@@ -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--;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment