diff options
author | wr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-04-19 02:00:54 +0000 |
---|---|---|
committer | wr61 <wr61@e10066b5-e1e2-0310-b819-94efdf66514b> | 2005-04-19 02:00:54 +0000 |
commit | 27ea8973648a7f8e1030dacb628d68560e832c30 (patch) | |
tree | 3e4c208ece95e4e482d5eeee33b73ba777bbbf92 /mg_incremental_search.c | |
parent | ca1ffaa915722657447c82c5e6c08ad86bd91e6d (diff) | |
download | vdr-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.c | 2 |
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; |