summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVinson Lee <[email protected]>2010-07-13 00:31:37 -0700
committerVinson Lee <[email protected]>2010-07-13 00:31:37 -0700
commitc4066b78c0aad41c199eb27157538c2ec9ab5bfd (patch)
tree14696cd7325624b0f71e32c75900acf48101a7fe /src
parent2470750b4ef3deed441d017d2f5a72c830d881ec (diff)
mesa: s/snprintf/_mesa_snprintf/
Diffstat (limited to 'src')
-rw-r--r--src/mesa/main/enums.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/enums.c b/src/mesa/main/enums.c
index 456d20603dc..bc18e1b1131 100644
--- a/src/mesa/main/enums.c
+++ b/src/mesa/main/enums.c
@@ -5648,7 +5648,8 @@ 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) - 1, "0x%x", nr);
+ token_tmp[sizeof(token_tmp) - 1] = '\0';
return token_tmp;
}
}