Бранимир Караџић 3 years ago
parent
commit
5f435ea56b
1 changed files with 2 additions and 2 deletions
  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;
 			return false;
 		}
 		}
 
 
-		char profileAndType[100] = {0};
+		char profileAndType[8] = {};
 		profileAndType[0] = (_options.shaderType == 'f') ? 'p' : _options.shaderType;
 		profileAndType[0] = (_options.shaderType == 'f') ? 'p' : _options.shaderType;
-		bx::strCat(profileAndType, 100, profile);
+		bx::strCat(profileAndType, BX_COUNTOF(profileAndType), profile);
 
 
 		s_compiler = load();
 		s_compiler = load();