mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 22:38:05 +02:00
glapi: use _mesa_snprintf()
Note that the enums.c file is generated with this script.
This will preserve the change from commit
c4066b78c0.
This commit is contained in:
parent
56da2403fc
commit
672f6cdc19
1 changed files with 2 additions and 1 deletions
|
|
@ -105,7 +105,8 @@ const char *_mesa_lookup_enum_by_nr( int nr )
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* this is not re-entrant safe, no big deal here */
|
/* 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;
|
return token_tmp;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue