mirror of
https://github.com/luanti-org/luanti.git
synced 2025-09-30 19:22:14 +00:00
Fix Irrlicht snprintf problems and UB in my_string_to_double
This commit is contained in:
parent
baaab310fe
commit
079169612d
4 changed files with 6 additions and 12 deletions
|
@ -139,7 +139,7 @@ void COpenGL3DriverBase::debugCb(GLenum source, GLenum type, GLuint id, GLenum s
|
|||
ll = ELL_ERROR;
|
||||
else if (severity == GL_DEBUG_SEVERITY_MEDIUM)
|
||||
ll = ELL_WARNING;
|
||||
char buf[300];
|
||||
char buf[512];
|
||||
snprintf_irr(buf, sizeof(buf), "%04x %04x %.*s", source, type, length, message);
|
||||
os::Printer::log("GL", buf, ll);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue