From 9df2f2fdc1e87068bfbf373b05f658480f953311 Mon Sep 17 00:00:00 2001 From: Thomas Martitz Date: Thu, 20 May 2010 18:09:41 +0000 Subject: 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(-) (limited to 'apps/plugins/codebuster.c') diff --git a/apps/plugins/codebuster.c b/apps/plugins/codebuster.c index 0fd1234..810bd0c 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 */ -- cgit v1.1