summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/shaders.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-05-02 01:03:59 -0700
committerVinson Lee <[email protected]>2010-05-02 01:03:59 -0700
commitfc1be4a99425d09103bba9e06026f31f2b0142d2 (patch)
treed95653e164f8608c8f7619fec0554a772a8229d7 /src/mesa/main/shaders.c
parent3c86e2f1dce458aec42b5de54fc2cf25cac28172 (diff)
mesa: s/sprintf/_mesa_snprintf/
Diffstat (limited to 'src/mesa/main/shaders.c')
-rw-r--r--src/mesa/main/shaders.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/shaders.c b/src/mesa/main/shaders.c
index f382680b443..efb667dbf36 100644
--- a/src/mesa/main/shaders.c
+++ b/src/mesa/main/shaders.c
@@ -485,7 +485,7 @@ _mesa_ShaderSourceARB(GLhandleARB shaderObj, GLsizei count,
checksum = _mesa_str_checksum(source);
- sprintf(filename, "newshader_%d", checksum);
+ _mesa_snprintf(filename, sizeof(filename), "newshader_%d", checksum);
newSource = _mesa_read_shader(filename);
if (newSource) {