projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
045174b
)
tgsi: null-terminate string in parse_identifier
author
Keith Whitwell
<keithw@vmware.com>
Mon, 7 Jun 2010 18:37:24 +0000
(19:37 +0100)
committer
Keith Whitwell
<keithw@vmware.com>
Mon, 7 Jun 2010 18:38:30 +0000
(19:38 +0100)
Hit this parsing geometry shader properties.
src/gallium/auxiliary/tgsi/tgsi_text.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/tgsi/tgsi_text.c
b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 00e6392f63ac4f487e381d8c1d63941ccd5d5d8c..527b7d7b22674a26162a10a5bd7d0a8b0464d31b 100644
(file)
--- a/
src/gallium/auxiliary/tgsi/tgsi_text.c
+++ b/
src/gallium/auxiliary/tgsi/tgsi_text.c
@@
-138,6
+138,7
@@
static boolean parse_identifier( const char **pcur, char *ret )
ret[i++] = *cur++;
while (is_alpha_underscore( cur ))
ret[i++] = *cur++;
+ ret[i++] = '\0';
*pcur = cur;
return TRUE;
}