From: Ghislain MARY Date: Tue, 2 Apr 2013 13:41:14 +0000 (+0200) Subject: Use correct mode parameter to fopen() call ("r+" instead of "rw"). X-Git-Url: http://sjero.net/git/?p=linphone;a=commitdiff_plain;h=00c725bcebe3436146feda79297785ffd7a702cd Use correct mode parameter to fopen() call ("r+" instead of "rw"). --- diff --git a/coreapi/lpconfig.c b/coreapi/lpconfig.c index db4e5de5..dd3de63d 100644 --- a/coreapi/lpconfig.c +++ b/coreapi/lpconfig.c @@ -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);