amassari 2003/12/02 07:04:52 Modified: c/src/xercesc/util/Platforms/FreeBSD FreeBSDPlatformUtils.cpp Log: openFile was opening the file for read and write, while only read was required (bug#20169) Revision Changes Path 1.15 +5 -2 xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp Index: FreeBSDPlatformUtils.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/util/Platforms/FreeBSD/FreeBSDPlatformUtils.cpp,v retrieving revision 1.14 retrieving revision 1.15 diff -u -r1.14 -r1.15 --- FreeBSDPlatformUtils.cpp 1 Oct 2003 16:32:39 -0000 1.14 +++ FreeBSDPlatformUtils.cpp 2 Dec 2003 15:04:52 -0000 1.15 @@ -56,6 +56,9 @@ /* * $Log$ + * Revision 1.15 2003/12/02 15:04:52 amassari + * openFile was opening the file for read and write, while only read was required (bug#20169) + * * Revision 1.14 2003/10/01 16:32:39 neilg * improve handling of out of memory conditions, bug #23415. Thanks to David Cargill. * @@ -305,7 +308,7 @@ XMLExcepts::CPtr_PointerIsZero); const char* tmpFileName = XMLString::transcode(fileName, fgMemoryManager); ArrayJanitor<char> janText((char*)tmpFileName, fgMemoryManager); - FileHandle retVal = (FileHandle)fopen( tmpFileName , "r+" ); + FileHandle retVal = (FileHandle)fopen( tmpFileName , "r" ); return retVal; } @@ -314,7 +317,7 @@ if (fileName == NULL) ThrowXML(XMLPlatformUtilsException, XMLExcepts::CPtr_PointerIsZero); - FileHandle retVal = (FileHandle)fopen( fileName , "r+" ); + FileHandle retVal = (FileHandle)fopen( fileName , "r" ); return retVal; }
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]