pXmlBuffer is not null terminated

https://github.com/cocos2d/cocos2d-x/pull/4073