projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b9c29e
)
nir/spirv: Use the correct length for copying string literals
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 6 May 2015 19:36:09 +0000
(12:36 -0700)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Sat, 16 May 2015 18:16:34 +0000
(11:16 -0700)
src/glsl/nir/spirv_to_nir.c
patch
|
blob
|
history
diff --git
a/src/glsl/nir/spirv_to_nir.c
b/src/glsl/nir/spirv_to_nir.c
index 62d377ed243309206bfc5bff2b50426606fa745b..d4bad887dc11e61e3a5bef323d1f809d30cffb96 100644
(file)
--- 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 *