Fix cts build error on mariner OS (#1872)

This commit is contained in:
Julia Jiang
2024-07-02 12:40:42 -04:00
committed by GitHub
parent 38ae617ca4
commit 6b4d57d85c

View File

@@ -426,7 +426,7 @@ struct CommandBufferPrintfTest : public BasicCommandBufferTest
std::max(min_pattern_length, rand() % max_pattern_length);
std::vector<cl_char> pattern(pattern_length + 1, pattern_character);
pattern[pattern_length] = '\0';
pattern.back() = '\0';
simul_passes[i] = { pattern,
{ cl_int(i * offset), cl_int(pattern_length) },
std::vector<cl_char>(num_elements