mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
ac: fix possible truncation of intrinsic name
Fixes the gcc warning: snprintf’ output between 26 and 33 bytes into a destination of size 32 Fixes:d5f7ebda3e("ac: add LLVM build functions for subgroup instrinsics") Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commitfae3b38770)
This commit is contained in:
parent
dd173da7a2
commit
0376e1a79a
1 changed files with 1 additions and 1 deletions
|
|
@ -2866,7 +2866,7 @@ static LLVMValueRef
|
|||
ac_build_set_inactive(struct ac_llvm_context *ctx, LLVMValueRef src,
|
||||
LLVMValueRef inactive)
|
||||
{
|
||||
char name[32], type[8];
|
||||
char name[33], type[8];
|
||||
LLVMTypeRef src_type = LLVMTypeOf(src);
|
||||
src = ac_to_integer(ctx, src);
|
||||
inactive = ac_to_integer(ctx, inactive);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue