Fixed 'inconsistent register' bug caused by terms of size IT_MAX_WORD
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2009 13:09:45 +0000 (14:09 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Jan 2009 13:09:45 +0000 (14:09 +0100)
index/kinput.c

index 5745116..3a9ed27 100644 (file)
@@ -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';