More cats and cpys in files that xcode doesn't see

This commit is contained in:
Glenn Smith 2018-03-07 01:13:56 -05:00
parent dce7f5f6b3
commit d9a723d533
21 changed files with 43 additions and 43 deletions

View file

@ -319,8 +319,8 @@ DefineConsoleFunction( consoleExportXML, const char*, (), ,"Exports console defi
Con::XMLExport xmlExport;
String xml;
xmlExport.exportXML(xml);
char* ret = Con::getReturnBuffer(xml.length() + 1);
dStrcpy(ret, xml.c_str());
char* ret = Con::getReturnBuffer(xml.size());
dStrcpy(ret, xml.c_str(), xml.size());
return ret;
}