diff options
author | Vinson Lee <[email protected]> | 2010-05-01 22:01:28 -0700 |
---|---|---|
committer | Vinson Lee <[email protected]> | 2010-05-01 22:01:28 -0700 |
commit | f4874705d95adfc85be535b85c9db26f5d3746f7 (patch) | |
tree | 60b5bad92d517b27aa54c7a9deeb32f2a3f2dd60 /src/mesa/shader/slang/slang_codegen.c | |
parent | 9446fd8f69564e09ffd0f28735a99c510f84bb62 (diff) |
glsl: s/sprintf/_mesa_snprintf/
Diffstat (limited to 'src/mesa/shader/slang/slang_codegen.c')
-rw-r--r-- | src/mesa/shader/slang/slang_codegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/shader/slang/slang_codegen.c b/src/mesa/shader/slang/slang_codegen.c index fa79632c18b..27ac1da9ad8 100644 --- a/src/mesa/shader/slang/slang_codegen.c +++ b/src/mesa/shader/slang/slang_codegen.c @@ -1560,7 +1560,7 @@ _slang_gen_function_call(slang_assemble_ctx *A, slang_function *fun, char name[200]; prevFuncEndLabel = A->curFuncEndLabel; - sprintf(name, "__endOfFunc_%s_", (char *) fun->header.a_name); + _mesa_snprintf(name, sizeof(name), "__endOfFunc_%s_", (char *) fun->header.a_name); A->curFuncEndLabel = _slang_label_new(name); assert(A->curFuncEndLabel); |