summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/glsl/nir/spirv_to_nir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/spirv_to_nir.c b/src/glsl/nir/spirv_to_nir.c
index 62d377ed243..d4bad887dc1 100644
--- a/src/glsl/nir/spirv_to_nir.c
+++ b/src/glsl/nir/spirv_to_nir.c
@@ -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 *