mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
nir/spirv: Use the correct length for copying string literals
This commit is contained in:
parent
7b9c29e440
commit
a28f8ad9f1
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@ static char *
|
|||
vtn_string_literal(struct vtn_builder *b, const uint32_t *words,
|
||||
unsigned word_count)
|
||||
{
|
||||
return ralloc_strndup(b, (char *)words, (word_count - 2) * sizeof(*words));
|
||||
return ralloc_strndup(b, (char *)words, word_count * sizeof(*words));
|
||||
}
|
||||
|
||||
static const uint32_t *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue