Fixed possible off-by-one loops
commite498a8bd79403a96dd5b9835b62ce1d1d9116c9f
authorChristophe CURIS <christophe.curis@free.nospam.fr>
Thu, 31 May 2012 18:26:09 +0000 (31 20:26 +0200)
committerCarlos R. Mafra <crmafra@gmail.com>
Thu, 31 May 2012 22:13:07 +0000 (31 23:13 +0100)
tree09bcabe628eb46bec54857d1673ed519262393be
parentd356baebea8b3aeff8b20dd513c81b34f5f3826b
Fixed possible off-by-one loops

Due to variable size definitions in the structure, the 'for' loops may
actually try to work on wrong data. Instead of using hard-coded value,
we now simply let the compiler give us the number of elements.

This may (or may not) fix a crash reported by Rodolfo kix Garcia.
src/winspector.c