053fe7652b
If the for loop does not match on a button it will fall through and try and dereference into the array using the terminating value of the loop. This terminating value of the loop is the dimension of the array and thus beyond its bounds. Cc: Jan Arne Petersen <jpetersen@openismus.com> Signed-off-by: Rob Bradford <rob@linux.intel.com>