freedreno/afuc: Fix up some sprintf format security warnings.

Showed up when I tried enabling asan.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7695>
This commit is contained in:
Eric Anholt 2020-11-17 15:48:48 -08:00 committed by Marge Bot
parent 9cb6e693c9
commit 06f2516696
1 changed files with 2 additions and 2 deletions

View File

@ -233,7 +233,7 @@ static int label_idx(uint32_t offset, bool create)
static const char *
label_name(uint32_t offset, bool allow_jt)
{
static char name[8];
static char name[12];
int lidx;
if (allow_jt) {
@ -279,7 +279,7 @@ static int fxn_idx(uint32_t offset, bool create)
static const char *
fxn_name(uint32_t offset)
{
static char name[8];
static char name[14];
int fidx = fxn_idx(offset, false);
if (fidx < 0)
return NULL;