OSDN Git Service
(root)
/
android-x86
/
external-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
00e6392
..
527b7d7
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;
}