diff options
Diffstat (limited to 'apps/plugins')
| -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 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 */ |