radeonsi: fix a snprintf warning on gcc 7.3.0
authorMarek Olšák <marek.olsak@amd.com>
Tue, 20 Mar 2018 21:02:43 +0000 (17:02 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 21 Mar 2018 17:43:09 +0000 (13:43 -0400)
src/gallium/drivers/radeonsi/si_shader_tgsi_setup.c

index c8ac8548b44ad828e7c6b1c9b2276221121bf3e0..90cc2e0d98196a387f3728559c0b33ee94ac022b 100644 (file)
@@ -648,7 +648,7 @@ static void emit_declaration(struct lp_build_tgsi_context *bld_base,
 
        case TGSI_FILE_TEMPORARY:
        {
-               char name[16] = "";
+               char name[18] = "";
                LLVMValueRef array_alloca = NULL;
                unsigned decl_size;
                unsigned writemask = decl->Declaration.UsageMask;