Index: src/hunspell/suggestmgr.cxx |
diff --git a/src/hunspell/suggestmgr.cxx b/src/hunspell/suggestmgr.cxx |
index 76ab2032658751fd8388670e3e0a09696fdeb175..cfec5251e99481fef956260e656d9b9f6bd56fee 100644 |
--- a/src/hunspell/suggestmgr.cxx |
+++ b/src/hunspell/suggestmgr.cxx |
@@ -823,7 +823,9 @@ int SuggestMgr::extrachar(char** wlst, const char * word, int ns, int cpdsuggest |
// error is missing a letter it needs |
int SuggestMgr::forgotchar(char ** wlst, const char * word, int ns, int cpdsuggest) |
{ |
- char candidate[MAXSWUTF8L]; |
+ // TODO(rouslan): Remove the interim change below when this patch lands: |
+ // http://sf.net/tracker/?func=detail&aid=3595024&group_id=143754&atid=756395 |
+ char candidate[MAXSWUTF8L + 4]; |
char * p; |
clock_t timelimit = clock(); |
int timer = MINTIMER; |
@@ -845,8 +847,10 @@ 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]; |
+ // TODO(rouslan): Remove the interim change below when this patch lands: |
+ // http://sf.net/tracker/?func=detail&aid=3595024&group_id=143754&atid=756395 |
+ w_char candidate_utf[MAXSWL + 1]; |
+ char candidate[MAXSWUTF8L + 4]; |
w_char * p; |
clock_t timelimit = clock(); |
int timer = MINTIMER; |