Author: borisk
Date: Fri Nov 20 15:10:13 2009
New Revision: 882597

URL: http://svn.apache.org/viewvc?rev=882597&view=rev
Log:
Fix a bug in the new LocalFileFormatTarget buffering implementation.

Modified:
    xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp

Modified: xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp?rev=882597&r1=882596&r2=882597&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/LocalFileFormatTarget.cpp Fri Nov 20 
15:10:13 2009
@@ -113,7 +113,15 @@
         fIndex += count;
       }
       else
+      {
+        if (fIndex)
+        {
+          XMLPlatformUtils::writeBufferToFile(fSource, fIndex, fDataBuf, 
fMemoryManager);
+          fIndex = 0;
+        }
+
         XMLPlatformUtils::writeBufferToFile(fSource, count, toWrite, 
fMemoryManager);
+      }
     }
 
     return;



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to