From: Dave Airlie Date: Wed, 8 Mar 2006 05:44:07 +0000 (+0000) Subject: coverity check bug fix going over end of array X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f1b431b265abc445e962701c65916d721a0e0ddf;p=mesa.git coverity check bug fix going over end of array --- 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;