GRAPHICS: Don't use unsafe sprintf and vsprintf
This commit is contained in:
parent
cd785e2208
commit
94b8f34302
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue