spirv-tools ver. bump

This commit is contained in:
Rmys
2021-06-28 14:57:46 +03:00
committed by GitHub
parent 771ecb9316
commit 013429cdf5
3 changed files with 26 additions and 6 deletions
@@ -0,0 +1,13 @@
diff --git a/source/diagnostic.cpp b/source/diagnostic.cpp
index edc27c8..77c29d7 100644
--- a/source/diagnostic.cpp
+++ b/source/diagnostic.cpp
@@ -37,7 +37,7 @@ spv_diagnostic spvDiagnosticCreate(const spv_position position,
diagnostic->position = *position;
diagnostic->isTextSource = false;
memset(diagnostic->error, 0, length);
- strncpy(diagnostic->error, message, length);
+ memcpy(diagnostic->error, message, length);
return diagnostic;
}