Mesa (master): tgsi: Fix parsing of properties with digits in the name

Jakob Bornecrantz wallbraker at kemper.freedesktop.org
Sun Mar 13 14:56:24 UTC 2011


Module: Mesa
Branch: master
Commit: 629bc76b75c6e35ecbbb7a6716b5f25f13ef34e6
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=629bc76b75c6e35ecbbb7a6716b5f25f13ef34e6

Author: Jakob Bornecrantz <wallbraker at gmail.com>
Date:   Sun Mar 13 15:32:44 2011 +0100

tgsi: Fix parsing of properties with digits in the name

---

 src/gallium/auxiliary/tgsi/tgsi_text.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 1eac762..57622a0 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;




More information about the mesa-commit mailing list