summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2010-06-07 19:37:24 +0100
committerKeith Whitwell <[email protected]>2010-06-07 19:38:30 +0100
commiteb430046de33db2e2e182e9fa2462e2fef163ca0 (patch)
tree4b65447dd53999cf1dd94e4fe6a909c608210d5a /src
parent045174b6853608f1f17194115da570067b4ce121 (diff)
tgsi: null-terminate string in parse_identifier
Hit this parsing geometry shader properties.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/auxiliary/tgsi/tgsi_text.c1
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 00e6392f63a..527b7d7b226 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;
}