Merge branch 'fix_event_listener'
pXmlBuffer is not null terminated
Merge pull request #4073 from ledyba/fix_ccuserdefault

closed #3107: When parsing XML using TinyXML, the data size has to be specified. Otherwise, XMLDocument::Parse(data) will treat data as a null-terminal string. It may cause potential issues.