summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri
diff options
context:
space:
mode:
authorDave Airlie <airliedfreedesktop.org>2006-03-08 05:44:07 +0000
committerDave Airlie <airliedfreedesktop.org>2006-03-08 05:44:07 +0000
commitf1b431b265abc445e962701c65916d721a0e0ddf (patch)
tree44038be59975d29cc685d8b31710c60aea34b135 /src/mesa/drivers/dri
parent9fc897af7a50ec8dd9349826f97704da6d3e2411 (diff)
coverity check bug fix going over end of array
Diffstat (limited to 'src/mesa/drivers/dri')
-rw-r--r--src/mesa/drivers/dri/radeon/radeon_sanity.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_sanity.c b/src/mesa/drivers/dri/radeon/radeon_sanity.c
index c6c7ea75a7d..1c7f9176c32 100644
--- a/src/mesa/drivers/dri/radeon/radeon_sanity.c
+++ b/src/mesa/drivers/dri/radeon/radeon_sanity.c
@@ -345,7 +345,7 @@ static void init_regs( void )
struct reg_names *tmp;
int i;
- for (i = 0 ; i < Elements(regs) ; i++) {
+ for (i = 0 ; i < Elements(regs)-1 ; i++) {
regs[i].idx = reg_names[i].idx;
regs[i].closest = &reg_names[i];
regs[i].flags = 0;