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

@ -71,7 +71,7 @@ inline int isatty(int) { return 0; }
buf[n++] = (char) c; \
result = n; \
}
// General helper stuff.
static int lineIndex;
@ -411,10 +411,10 @@ static int Sc_ScanString(int ret)
CMDtext[CMDleng - 1] = 0;
if(!collapseEscape(CMDtext+1))
return -1;
char* buffer = ( char* ) consoleAlloc( dStrlen( CMDtext ) );
dStrcpy( buffer, CMDtext + 1 );
dStrcpy( buffer, CMDtext + 1, dStrlen( CMDtext ) );
CMDlval.str = MakeToken< char* >( buffer, lineIndex );
return ret;
}

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;
}