diff options
Diffstat (limited to 'src/tool_parsecfg.c')
-rw-r--r-- | src/tool_parsecfg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tool_parsecfg.c b/src/tool_parsecfg.c index 4c25ddbd5..39b43eef4 100644 --- a/src/tool_parsecfg.c +++ b/src/tool_parsecfg.c @@ -69,7 +69,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global) /* Check if the file exists - if not, try CURLRC in the same * directory as our executable */ - file = fopen(filebuffer, "r"); + file = fopen(filebuffer, FOPEN_READTEXT); if(file != NULL) { fclose(file); filename = filebuffer; @@ -115,7 +115,7 @@ int parseconfig(const char *filename, struct GlobalConfig *global) } if(strcmp(filename, "-")) - file = fopen(filename, "r"); + file = fopen(filename, FOPEN_READTEXT); else file = stdin; |