From 5f435ea56b29c3dd3ebdf9fab1a8f408681ff919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=91=D1=80=D0=B0=D0=BD=D0=B8=D0=BC=D0=B8=D1=80=20=D0=9A?= =?UTF-8?q?=D0=B0=D1=80=D0=B0=D1=9F=D0=B8=D1=9B?= Date: Wed, 28 Dec 2022 10:26:39 -0800 Subject: [PATCH] Cleanup. --- tools/shaderc/shaderc_hlsl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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();