Бранимир Караџић 3 лет назад
Родитель
Сommit
5f435ea56b
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      tools/shaderc/shaderc_hlsl.cpp

+ 2 - 2
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();