mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-12 19:31:41 +00:00
Use fixed buffer size var when allocating return buffer from console.
Conflicts: Engine/source/T3D/missionArea.cpp Engine/source/gui/editor/guiDebugger.cpp
This commit is contained in:
parent
d0a64026b0
commit
f3fc84738b
42 changed files with 300 additions and 204 deletions
|
|
@ -664,8 +664,9 @@ ConsoleFunction( setShadowVizLight, const char*, 2, 2, "" )
|
|||
const Point3I &size = texObject->getSize();
|
||||
F32 aspect = (F32)size.x / (F32)size.y;
|
||||
|
||||
char *result = Con::getReturnBuffer( 64 );
|
||||
dSprintf( result, 64, "%d %d %g", size.x, size.y, aspect );
|
||||
static const U32 bufSize = 64;
|
||||
char *result = Con::getReturnBuffer( bufSize );
|
||||
dSprintf( result, bufSize, "%d %d %g", size.x, size.y, aspect );
|
||||
return result;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue