Kouhei Sutou
null+****@clear*****
Thu Sep 25 22:15:13 JST 2014
Kouhei Sutou 2014-09-25 22:15:13 +0900 (Thu, 25 Sep 2014) New Revision: 148fe3cd191658a51be17bca520d5acf9c2fd388 https://github.com/groonga/groonga/commit/148fe3cd191658a51be17bca520d5acf9c2fd388 Message: Fix wrong length check len is the current character length... We need to check prefix string length. Modified files: lib/expr.c Modified: lib/expr.c (+1 -1) =================================================================== --- lib/expr.c 2014-09-25 21:48:52 +0900 (1dfb540) +++ lib/expr.c 2014-09-25 22:15:13 +0900 (c685fc6) @@ -6072,7 +6072,7 @@ get_word_(grn_ctx *ctx, efs_info *q) GRN_INT32_PUT(ctx, &q->mode_stack, mode); return GRN_SUCCESS; - } else if (len > 1 && *end == GRN_QUERY_PREFIX) { + } else if (GRN_TEXT_LEN(&q->buf) > 1 && *end == GRN_QUERY_PREFIX) { q->cur = end + 1; GRN_INT32_PUT(ctx, &q->mode_stack, GRN_OP_PREFIX); break; -------------- next part -------------- HTML����������������������������...Download