tgsi: null-terminate string in parse_identifier

Hit this parsing geometry shader properties.
This commit is contained in:
Keith Whitwell 2010-06-07 19:37:24 +01:00
parent 045174b685
commit eb430046de

View file

@ -138,6 +138,7 @@ static boolean parse_identifier( const char **pcur, char *ret )
ret[i++] = *cur++; ret[i++] = *cur++;
while (is_alpha_underscore( cur )) while (is_alpha_underscore( cur ))
ret[i++] = *cur++; ret[i++] = *cur++;
ret[i++] = '\0';
*pcur = cur; *pcur = cur;
return TRUE; return TRUE;
} }