Skip to content

Commit abd048c

Browse files
Hey kids, you know print-format attacks?
1 parent 6b33b97 commit abd048c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nbl/asset/utils/CGLSLCompiler.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ std::string CGLSLCompiler::preprocessShader(std::string&& code, IShader::E_SHADE
151151
auto res = comp.PreprocessGlsl(code, scstage, preprocessOptions.sourceIdentifier.data(), options);
152152

153153
if (res.GetCompilationStatus() != shaderc_compilation_status_success) {
154-
preprocessOptions.logger.log(res.GetErrorMessage(), system::ILogger::ELL_ERROR);
154+
preprocessOptions.logger.log("%s\n", system::ILogger::ELL_ERROR, res.GetErrorMessage());
155155
return nullptr;
156156
}
157157

0 commit comments

Comments
 (0)