summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2014-12-06 23:04:53 -0800
committerMatt Turner <mattst88@gmail.com>2014-12-12 12:11:31 -0800
commit2eef9c0b16eb33c32359209cf71317fc42c49404 (patch)
tree95f80ebbd3efea1df583e05a9c6cd618f2a2055a
parente5eaf8ec600b73de7f52555ce1c9a74883dba941 (diff)
r200: Avoid out of bounds array access.
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
-rw-r--r--src/mesa/drivers/dri/r200/r200_sanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/r200/r200_sanity.c b/src/mesa/drivers/dri/r200/r200_sanity.c
index dd3cf81755..34d83d89b3 100644
--- a/src/mesa/drivers/dri/r200/r200_sanity.c
+++ b/src/mesa/drivers/dri/r200/r200_sanity.c
@@ -622,7 +622,7 @@ static void init_regs( void )
struct reg_names *tmp;
int i;
- for (i = 0 ; i < Elements(regs) ; i++) {
+ for (i = 0 ; i < Elements(reg_names) ; i++) {
regs[i].idx = reg_names[i].idx;
regs[i].closest = &reg_names[i];
regs[i].flags = 0;