Skip to content
Snippets Groups Projects
Commit 49b311cd authored by James David Berry's avatar James David Berry
Browse files

Open files for reading as "r", not "r+".

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@175292 13f79535-47bb-0310-9956-ffa450edef68
parent a9b05483
No related branches found
No related tags found
No related merge requests found
......@@ -164,7 +164,7 @@ XMLMacPosixFile::open(const char* const path, bool toWrite)
if (!path)
ThrowXML(XMLPlatformUtilsException, XMLExcepts::CPtr_PointerIsZero);
const char* perms = (toWrite) ? "w" : "r+";
const char* perms = (toWrite) ? "w" : "r";
mFile = fopen(path, perms);
return (mFile != NULL);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment