From: Jakob Bornecrantz Date: Sun, 13 Mar 2011 14:32:44 +0000 (+0100) Subject: tgsi: Fix parsing of properties with digits in the name X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=629bc76b75c6e35ecbbb7a6716b5f25f13ef34e6;p=mesa.git tgsi: Fix parsing of properties with digits in the name --- diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 1eac762e6e5..57622a0dea6 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_text.c +++ b/src/gallium/auxiliary/tgsi/tgsi_text.c @@ -137,7 +137,7 @@ static boolean parse_identifier( const char **pcur, char *ret ) int i = 0; if (is_alpha_underscore( cur )) { ret[i++] = *cur++; - while (is_alpha_underscore( cur )) + while (is_alpha_underscore( cur ) || is_digit( cur )) ret[i++] = *cur++; ret[i++] = '\0'; *pcur = cur;