diff options
author | Dave Airlie <airliedfreedesktop.org> | 2006-03-08 05:44:07 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2006-03-08 05:44:07 +0000 |
commit | f1b431b265abc445e962701c65916d721a0e0ddf (patch) | |
tree | 44038be59975d29cc685d8b31710c60aea34b135 /src/mesa/drivers | |
parent | 9fc897af7a50ec8dd9349826f97704da6d3e2411 (diff) |
coverity check bug fix going over end of array
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_sanity.c | 2 |
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 c6c7ea75a7..1c7f9176c3 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 = ®_names[i]; regs[i].flags = 0; |