param lib: Fix use of array size

This commit is contained in:
Lorenz Meier 2015-05-15 09:11:28 +02:00
parent a0af91d05c
commit 535eb7dbd9
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ param_for_used_index(unsigned index)
/* walk all params and count */
int count = 0;
for (unsigned i = 0; i < (unsigned)param_info_count + 1; i++) {
for (unsigned i = 0; i < (unsigned)size_param_changed_storage_bytes; i++) {
for (unsigned j = 0; j < 8; j++) {
if (param_changed_storage[i] & (1 << j)) {