mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-25 01:23:52 +00:00
More cats and cpys in files that xcode doesn't see
This commit is contained in:
parent
dce7f5f6b3
commit
d9a723d533
21 changed files with 43 additions and 43 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue