mesa: s/snprintf/_mesa_snprintf/

This commit is contained in:
Vinson Lee 2010-07-13 00:31:37 -07:00
parent 2470750b4e
commit c4066b78c0
1 changed files with 2 additions and 1 deletions

View File

@ -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;
}
}