forked from mirrors/linphone-iphone
Use correct mode parameter to fopen() call ("r+" instead of "rw").
This commit is contained in:
parent
12a6e42e5a
commit
00c725bceb
1 changed files with 1 additions and 1 deletions
|
|
@ -215,7 +215,7 @@ LpConfig * lp_config_new(const char *filename){
|
|||
if (filename!=NULL){
|
||||
ms_message("Using (r/w) config information from %s", filename);
|
||||
lpconfig->filename=ortp_strdup(filename);
|
||||
lpconfig->file=fopen(filename,"rw");
|
||||
lpconfig->file=fopen(filename,"r+");
|
||||
if (lpconfig->file!=NULL){
|
||||
struct stat fileStat;
|
||||
lp_config_parse(lpconfig,lpconfig->file);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue