diff --git a/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp b/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp index 7eb4dd7d4e84c20405b876e6723764a452703bbf..5fe15ce7040753a5417ba942f8d8f1365d287076 100644 --- a/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp +++ b/src/xercesc/util/Platforms/MacOS/MacPosixFile.cpp @@ -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);