mirror of
https://github.com/minetest/irrlicht.git
synced 2025-07-01 15:50:27 +02:00
Get rid of all sprintf calls
This commit is contained in:
@ -1307,8 +1307,8 @@ bool CNullDriver::checkPrimitiveCount(u32 prmCount) const
|
||||
|
||||
if (prmCount > m)
|
||||
{
|
||||
char tmp[1024];
|
||||
sprintf(tmp,"Could not draw triangles, too many primitives(%u), maximum is %u.", prmCount, m);
|
||||
char tmp[128];
|
||||
snprintf_irr(tmp, sizeof(tmp), "Could not draw triangles, too many primitives(%u), maximum is %u.", prmCount, m);
|
||||
os::Printer::log(tmp, ELL_ERROR);
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user