diff --git a/tools/shaderc/shaderc_hlsl.cpp b/tools/shaderc/shaderc_hlsl.cpp index 739a250fa..67aebe9ef 100644 --- a/tools/shaderc/shaderc_hlsl.cpp +++ b/tools/shaderc/shaderc_hlsl.cpp @@ -563,9 +563,9 @@ namespace bgfx { namespace hlsl return false; } - char profileAndType[100] = {0}; + char profileAndType[8] = {}; profileAndType[0] = (_options.shaderType == 'f') ? 'p' : _options.shaderType; - bx::strCat(profileAndType, 100, profile); + bx::strCat(profileAndType, BX_COUNTOF(profileAndType), profile); s_compiler = load();