Index: src/hunspell/suggestmgr.cxx |
diff --git a/src/hunspell/suggestmgr.cxx b/src/hunspell/suggestmgr.cxx |
index 76ab2032658751fd8388670e3e0a09696fdeb175..2d69290661b17335ff6db46bbc7482be2e0a83c6 100644 |
--- a/src/hunspell/suggestmgr.cxx |
+++ b/src/hunspell/suggestmgr.cxx |
@@ -845,8 +845,8 @@ int SuggestMgr::forgotchar(char ** wlst, const char * word, int ns, int cpdsugge |
// error is missing a letter it needs |
int SuggestMgr::forgotchar_utf(char ** wlst, const w_char * word, int wl, int ns, int cpdsuggest) |
{ |
- w_char candidate_utf[MAXSWL]; |
- char candidate[MAXSWUTF8L]; |
+ w_char candidate_utf[MAXSWL + 1]; |
+ char candidate[MAXSWUTF8L + 4]; |
groby-ooo-7-16
2012/12/12 01:19:38
does this work for 100 character pastes now? And 1
please use gerrit instead
2012/12/12 05:33:53
Words of 100 characters or more do not get passed
please use gerrit instead
2012/12/12 21:00:01
The clip of wl to be < MAXSWL happens on line 140
|
w_char * p; |
clock_t timelimit = clock(); |
int timer = MINTIMER; |