diff options
author | Thomas Martitz <kugel@rockbox.org> | 2010-05-20 18:09:41 +0000 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2010-05-20 18:09:41 +0000 |
commit | 9df2f2fdc1e87068bfbf373b05f658480f953311 (patch) | |
tree | bf5b18bb8fedf8f6a5f30e90a1dea84f1ecbf550 /apps/plugins/codebuster.c | |
parent | 20e9d56ba5507021bdde898f4b0a0eb14f2af861 (diff) | |
download | rockbox-9df2f2fdc1e87068bfbf373b05f658480f953311.tar.gz rockbox-9df2f2fdc1e87068bfbf373b05f658480f953311.tar.bz2 rockbox-9df2f2fdc1e87068bfbf373b05f658480f953311.zip |
Fix a data abort in codebuster.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@26203 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/codebuster.c')
-rw-r--r-- | apps/plugins/codebuster.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/plugins/codebuster.c b/apps/plugins/codebuster.c index 0fd1234b29..810bd0c570 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 */ |