]> sjero.net Git - linphone/commitdiff
Use correct mode parameter to fopen() call ("r+" instead of "rw").
authorGhislain MARY <ghislain.mary@belledonne-communications.com>
Tue, 2 Apr 2013 13:41:14 +0000 (15:41 +0200)
committerGhislain MARY <ghislain.mary@belledonne-communications.com>
Tue, 2 Apr 2013 13:41:14 +0000 (15:41 +0200)
coreapi/lpconfig.c

index db4e5de5c932b713ea968f80c5aa1c796cb276ee..dd3de63db91aec56243c0de7de241f9bc7388027 100644 (file)
@@ -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);