diff options
author | Keith Whitwell <keithw@vmware.com> | 2010-06-07 19:37:24 +0100 |
---|---|---|
committer | Keith Whitwell <keithw@vmware.com> | 2010-06-07 19:38:30 +0100 |
commit | eb430046de33db2e2e182e9fa2462e2fef163ca0 (patch) | |
tree | 4b65447dd53999cf1dd94e4fe6a909c608210d5a | |
parent | 045174b6853608f1f17194115da570067b4ce121 (diff) |
tgsi: null-terminate string in parse_identifier
Hit this parsing geometry shader properties.
-rw-r--r-- | src/gallium/auxiliary/tgsi/tgsi_text.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 00e6392f63..527b7d7b22 100644 --- 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; } |