From 943fa5869844eac8233a7d05f87189dd3458fa0d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 9 Jan 2009 14:09:45 +0100 Subject: [PATCH] Fixed 'inconsistent register' bug caused by terms of size IT_MAX_WORD --- index/kinput.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'; -- 1.7.10.4