From: Adam Dickmeiss Date: Fri, 9 Jan 2009 13:09:45 +0000 (+0100) Subject: Fixed 'inconsistent register' bug caused by terms of size IT_MAX_WORD X-Git-Tag: v2.0.36~11 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=943fa5869844eac8233a7d05f87189dd3458fa0d;p=idzebra-moved-to-github.git Fixed 'inconsistent register' bug caused by terms of size IT_MAX_WORD --- diff --git a/index/kinput.c b/index/kinput.c index 5745116..3a9ed27 100644 --- a/index/kinput.c +++ b/index/kinput.c @@ -185,7 +185,7 @@ int key_file_read(struct key_file *f, char *key) key[i++] = c; while ((c = key_file_getc(f))) { - if (i < IT_MAX_WORD) + if (i <= IT_MAX_WORD) key[i++] = c; } key[i++] = '\0';