summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/enums.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/main/enums.c')
-rw-r--r--src/mesa/main/enums.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/main/enums.c b/src/mesa/main/enums.c
index 45f6a64356a..9d6ffcd9319 100644
--- a/src/mesa/main/enums.c
+++ b/src/mesa/main/enums.c
@@ -5279,7 +5279,7 @@ const char *_mesa_lookup_enum_by_nr( int nr )
}
else {
/* this is not re-entrant safe, no big deal here */
- sprintf(token_tmp, "0x%x", nr);
+ _mesa_snprintf(token_tmp, sizeof(token_tmp), "0x%x", nr);
return token_tmp;
}
}