dovecot: Fix for searching <4 char keys.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Dec 3 14:37:34 EET 2007
details: http://hg.dovecot.org/dovecot/rev/b326327b1f10
changeset: 6912:b326327b1f10
user: Timo Sirainen <tss at iki.fi>
date: Mon Dec 03 14:37:30 2007 +0200
description:
Fix for searching <4 char keys.
diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
src/plugins/fts-squat/squat-trie.c | 2 +-
diffs (12 lines):
diff -r a215deb3de8d -r b326327b1f10 src/plugins/fts-squat/squat-trie.c
--- a/src/plugins/fts-squat/squat-trie.c Mon Dec 03 14:23:45 2007 +0200
+++ b/src/plugins/fts-squat/squat-trie.c Mon Dec 03 14:37:30 2007 +0200
@@ -1496,7 +1496,7 @@ int squat_trie_lookup(struct squat_trie
str_bytelen = strlen(str);
char_lengths = t_malloc0(str_bytelen);
- for (i = 0; i < str_bytelen; ) {
+ for (i = 0, str_charlen = 0; i < str_bytelen; str_charlen++) {
bytes = uni_utf8_char_bytes(str[i]);
char_lengths[i] = bytes;
i += bytes;
More information about the dovecot-cvs
mailing list