Skip to content

Commit

Permalink
mecab: add missing end check
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Mar 1, 2015
1 parent d1869d6 commit ad54f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/tokenizers/mecab.c
Expand Up @@ -434,7 +434,7 @@ mecab_next(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data)

if (space_len > 0) {
const char *q = r + space_len;
while ((space_len = grn_isspace(q, encoding))) {
while (q < e && (space_len = grn_isspace(q, encoding))) {
q += space_len;
}
tokenizer->next = q;
Expand Down

0 comments on commit ad54f47

Please sign in to comment.