summaryrefslogtreecommitdiff
path: root/mg_incremental_search.c
diff options
context:
space:
mode:
authorwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-04-19 02:00:54 +0000
committerwr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b>2005-04-19 02:00:54 +0000
commit27ea8973648a7f8e1030dacb628d68560e832c30 (patch)
tree3e4c208ece95e4e482d5eeee33b73ba777bbbf92 /mg_incremental_search.c
parentca1ffaa915722657447c82c5e6c08ad86bd91e6d (diff)
downloadvdr-plugin-muggle-27ea8973648a7f8e1030dacb628d68560e832c30.tar.gz
vdr-plugin-muggle-27ea8973648a7f8e1030dacb628d68560e832c30.tar.bz2
fix off by one
git-svn-id: https://vdr-muggle.svn.sourceforge.net/svnroot/vdr-muggle/branches/0.1.6-wr@634 e10066b5-e1e2-0310-b819-94efdf66514b
Diffstat (limited to 'mg_incremental_search.c')
-rw-r--r--mg_incremental_search.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mg_incremental_search.c b/mg_incremental_search.c
index 58b2147..b268d6a 100644
--- a/mg_incremental_search.c
+++ b/mg_incremental_search.c
@@ -58,7 +58,7 @@ string mgIncrementalSearch::KeyStroke( unsigned key )
// position remains
m_repeats ++;
- if( (unsigned) m_repeats > strlen( keys[m_position] ) )
+ if( (unsigned) m_repeats >= strlen( keys[m_position] ) )
{
// wrap around to first char
m_repeats = 0;