summaryrefslogtreecommitdiffstats
path: root/src/mesa/shader/slang/slang_print.c
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-05-01 22:01:28 -0700
committerVinson Lee <[email protected]>2010-05-01 22:01:28 -0700
commitf4874705d95adfc85be535b85c9db26f5d3746f7 (patch)
tree60b5bad92d517b27aa54c7a9deeb32f2a3f2dd60 /src/mesa/shader/slang/slang_print.c
parent9446fd8f69564e09ffd0f28735a99c510f84bb62 (diff)
glsl: s/sprintf/_mesa_snprintf/
Diffstat (limited to 'src/mesa/shader/slang/slang_print.c')
-rw-r--r--src/mesa/shader/slang/slang_print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/shader/slang/slang_print.c b/src/mesa/shader/slang/slang_print.c
index 3c75523c42f..6b34f395fdf 100644
--- a/src/mesa/shader/slang/slang_print.c
+++ b/src/mesa/shader/slang/slang_print.c
@@ -813,7 +813,7 @@ static const char *
slang_fq_type_string(const slang_fully_specified_type *t)
{
static char str[1000];
- sprintf(str, "%s %s", slang_type_qual_string(t->qualifier),
+ _mesa_snprintf(str, sizeof(str), "%s %s", slang_type_qual_string(t->qualifier),
slang_type_string(t->specifier.type));
return str;
}
@@ -832,9 +832,9 @@ static char *
slang_var_string(const slang_variable *v)
{
static char str[1000];
- sprintf(str, "%s : %s",
- (char *) v->a_name,
- slang_fq_type_string(&v->type));
+ _mesa_snprintf(str, sizeof(str), "%s : %s",
+ (char *) v->a_name,
+ slang_fq_type_string(&v->type));
return str;
}
#endif