pXmlBuffer is not null terminated

This commit is contained in:
psi 2013-11-03 11:17:04 +09:00
parent 5e88ecb622
commit 5443fc0d07
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ static tinyxml2::XMLElement* getXMLNodeForKey(const char* pKey, tinyxml2::XMLEle
CCLOG("can not read xml file");
break;
}
xmlDoc->Parse(pXmlBuffer);
xmlDoc->Parse(pXmlBuffer, nSize);
delete[] pXmlBuffer;
// get root node
*rootNode = xmlDoc->RootElement();