Skip to content
Snippets Groups Projects
Commit 22116bd4 authored by Boris Kolpackov's avatar Boris Kolpackov
Browse files

Fix a bug in the new LocalFileFormatTarget buffering implementation.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@882597 13f79535-47bb-0310-9956-ffa450edef68
parent 752a1650
No related branches found
No related tags found
No related merge requests found
......@@ -113,7 +113,15 @@ void LocalFileFormatTarget::writeChars(const XMLByte* const toWrite
fIndex += count;
}
else
{
if (fIndex)
{
XMLPlatformUtils::writeBufferToFile(fSource, fIndex, fDataBuf, fMemoryManager);
fIndex = 0;
}
XMLPlatformUtils::writeBufferToFile(fSource, count, toWrite, fMemoryManager);
}
}
return;
......
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