Mesa (master): tgsi: null-terminate string in parse_identifier
Keith Whitwell
keithw at kemper.freedesktop.org
Mon Jun 7 18:41:36 UTC 2010
Module: Mesa
Branch: master
Commit: eb430046de33db2e2e182e9fa2462e2fef163ca0
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=eb430046de33db2e2e182e9fa2462e2fef163ca0
Author: Keith Whitwell <keithw at vmware.com>
Date: Mon Jun 7 19:37:24 2010 +0100
tgsi: null-terminate string in parse_identifier
Hit this parsing geometry shader properties.
---
src/gallium/auxiliary/tgsi/tgsi_text.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c
index 00e6392..527b7d7 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;
}
More information about the mesa-commit
mailing list