Blob Blame History Raw
--- trunk/libvoikko/src/spellchecker/FinnishSpellerTweaksWrapper.cpp	2011/04/03 14:34:25	3855
+++ trunk/libvoikko/src/spellchecker/FinnishSpellerTweaksWrapper.cpp	2011/09/23 14:19:19	4015
@@ -92,7 +92,7 @@
 			if (word[i] == L'-') {
 				spellresult leadingResult = spell(word, i);
 				if (leadingResult != SPELL_FAILED) {
-					list<Analysis *> * trailingAnalyses = analyzer->analyze(word + i + 1);
+					list<Analysis *> * trailingAnalyses = analyzer->analyze(word + i + 1, wlen - (i + 1));
 					list<Analysis *>::const_iterator it = trailingAnalyses->begin();
 					bool isTrailingAcceptable = false;
 					while (it != trailingAnalyses->end()) {