From: Keith Whitwell Date: Mon, 7 Jun 2010 18:37:24 +0000 (+0100) Subject: tgsi: null-terminate string in parse_identifier X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=eb430046de33db2e2e182e9fa2462e2fef163ca0;p=mesa.git tgsi: null-terminate string in parse_identifier Hit this parsing geometry shader properties. --- 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; }