diff options
author | sfan5 <sfan5@live.de> | 2022-02-26 11:18:19 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-02-26 12:11:27 +0100 |
commit | 95af6d7c0859c7e21853d4b47ab9587af7f213b8 (patch) | |
tree | 8376e458d1ef270ad8e6a82e2383a93955e2e1a8 /source/Irrlicht/CNullDriver.cpp | |
parent | 00dd274510cc9addb3075a864385a00b8e578494 (diff) | |
download | irrlicht-95af6d7c0859c7e21853d4b47ab9587af7f213b8.tar.xz |
Get rid of all sprintf calls
Diffstat (limited to 'source/Irrlicht/CNullDriver.cpp')
-rw-r--r-- | source/Irrlicht/CNullDriver.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/Irrlicht/CNullDriver.cpp b/source/Irrlicht/CNullDriver.cpp index 71fc9a8..20ee093 100644 --- a/source/Irrlicht/CNullDriver.cpp +++ b/source/Irrlicht/CNullDriver.cpp @@ -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;
}
|