From eb430046de33db2e2e182e9fa2462e2fef163ca0 Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Mon, 7 Jun 2010 19:37:24 +0100 Subject: [PATCH] tgsi: null-terminate string in parse_identifier Hit this parsing geometry shader properties. --- src/gallium/auxiliary/tgsi/tgsi_text.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.30.2