summaryrefslogtreecommitdiffstats
path: root/src/suffixtree.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/suffixtree.cpp')
-rw-r--r--src/suffixtree.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/suffixtree.cpp b/src/suffixtree.cpp
index ad0aebd..5439fc6 100644
--- a/src/suffixtree.cpp
+++ b/src/suffixtree.cpp
@@ -325,7 +325,7 @@ void SuffixTree::insertWord(const char *word,int index,bool inName)
{
QCString suffix=word;
uint i;
- for (i=2;i<suffix.length()-1;i++)
+ for (i=2;i<suffix.length();i++)
{
//printf("Inserting suffix %s\n",suffix.right(i).data());
nodes+=root->insert(suffix.right(i),index,inName?1:0,FALSE);