From f1b431b265abc445e962701c65916d721a0e0ddf Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Wed, 8 Mar 2006 05:44:07 +0000 Subject: [PATCH] coverity check bug fix going over end of array --- src/mesa/drivers/dri/radeon/radeon_sanity.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = ®_names[i]; regs[i].flags = 0; -- 2.30.2