diff options
author | Matt Turner <[email protected]> | 2014-12-06 23:04:53 -0800 |
---|---|---|
committer | Matt Turner <[email protected]> | 2014-12-12 12:11:31 -0800 |
commit | 2eef9c0b16eb33c32359209cf71317fc42c49404 (patch) | |
tree | 95f80ebbd3efea1df583e05a9c6cd618f2a2055a /src/mesa/drivers/dri/r200 | |
parent | e5eaf8ec600b73de7f52555ce1c9a74883dba941 (diff) |
r200: Avoid out of bounds array access.
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/r200')
-rw-r--r-- | src/mesa/drivers/dri/r200/r200_sanity.c | 2 |
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 dd3cf817558..34d83d89b38 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 = ®_names[i]; regs[i].flags = 0; |