GRAPHICS: Don't use unsafe sprintf and vsprintf

This commit is contained in:
Le Philousophe 2022-10-23 15:19:43 +02:00 committed by Eugene Sandulenko
parent cd785e2208
commit 94b8f34302

View file

@ -173,7 +173,7 @@ GLuint Shader::createCompatShader(const char *shaderSource, GLenum shaderType, c
return 0;
}
sprintf(versionSource, "#version %d\n", compatGLSLVersion);
Common::sprintf_s(versionSource, "#version %d\n", compatGLSLVersion);
const GLchar *compatSource =
shaderType == GL_VERTEX_SHADER ? compatVertex : compatFragment;