Commit 00c725bc authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Use correct mode parameter to fopen() call ("r+" instead of "rw").

parent 12a6e42e
...@@ -215,7 +215,7 @@ LpConfig * lp_config_new(const char *filename){ ...@@ -215,7 +215,7 @@ LpConfig * lp_config_new(const char *filename){
if (filename!=NULL){ if (filename!=NULL){
ms_message("Using (r/w) config information from %s", filename); ms_message("Using (r/w) config information from %s", filename);
lpconfig->filename=ortp_strdup(filename); lpconfig->filename=ortp_strdup(filename);
lpconfig->file=fopen(filename,"rw"); lpconfig->file=fopen(filename,"r+");
if (lpconfig->file!=NULL){ if (lpconfig->file!=NULL){
struct stat fileStat; struct stat fileStat;
lp_config_parse(lpconfig,lpconfig->file); lp_config_parse(lpconfig,lpconfig->file);
Markdown is supported
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