From 263542e41ee9873bd918c2b5bc0da2a9260d85ff Mon Sep 17 00:00:00 2001 From: kugel Date: Thu, 20 May 2010 18:09:41 +0000 Subject: [PATCH] Fix a data abort in codebuster. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26203 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/codebuster.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/plugins/codebuster.c b/apps/plugins/codebuster.c index 0fd1234b2..810bd0c57 100644 --- a/apps/plugins/codebuster.c +++ b/apps/plugins/codebuster.c @@ -130,7 +130,8 @@ struct mm_line guesses[MAX_GUESSES_COUNT]; /* Alias for pluginlib_getaction */ static inline int get_button(void) { - return pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, 2); + return pluginlib_getaction(TIMEOUT_BLOCK, plugin_contexts, + ARRAYLEN(plugin_contexts)); } /* Computes the margin to center an element */ -- 2.11.4.GIT