Update SPIRV-Tools to 2020.1 / SPIRV-Cross to 65aa0c3 (#2121)
This commit is contained in:
+1
-1
@@ -313,7 +313,7 @@ spv_result_t AssemblyContext::binaryEncodeString(const char* value,
|
||||
pInst->words.back() = 0;
|
||||
|
||||
char* dest = (char*)&pInst->words[oldWordCount];
|
||||
strncpy(dest, value, length);
|
||||
strncpy(dest, value, length + 1);
|
||||
|
||||
return SPV_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user