Skip to content
Snippets Groups Projects
Commit 477b8b6f authored by Tinny Ng's avatar Tinny Ng
Browse files

Fix compilation error on UNIX box.

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@174099 13f79535-47bb-0310-9956-ffa450edef68
parent d8be3ad9
No related branches found
No related tags found
No related merge requests found
...@@ -209,7 +209,7 @@ void DOMBuffer::expandCapacity(const unsigned int extraNeeded) ...@@ -209,7 +209,7 @@ void DOMBuffer::expandCapacity(const unsigned int extraNeeded)
{ {
//not enough room. Calc new capacity and allocate new buffer //not enough room. Calc new capacity and allocate new buffer
const unsigned int newCap = (unsigned int)((fIndex + extraNeeded) * 1.25); const unsigned int newCap = (unsigned int)((fIndex + extraNeeded) * 1.25);
XMLCh* newBuf = new (fDoc) XMLCh[newCap+1]; XMLCh* newBuf = (XMLCh*) fDoc->allocate((newCap+1)*sizeof(XMLCh));
// Copy over the old stuff // Copy over the old stuff
memcpy(newBuf, fBuffer, fCapacity * sizeof(XMLCh)); memcpy(newBuf, fBuffer, fCapacity * sizeof(XMLCh));
......
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