1
0
Fork 0
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:
sfan5 2025-08-24 11:53:01 +02:00
parent baaab310fe
commit 079169612d
4 changed files with 6 additions and 12 deletions

View file

@ -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);
}