diff options
Diffstat (limited to 'plugins/SpellChecker/src/RichEdit.cpp')
| -rw-r--r-- | plugins/SpellChecker/src/RichEdit.cpp | 2 | 
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/SpellChecker/src/RichEdit.cpp b/plugins/SpellChecker/src/RichEdit.cpp index c76391620a..7971b607fd 100644 --- a/plugins/SpellChecker/src/RichEdit.cpp +++ b/plugins/SpellChecker/src/RichEdit.cpp @@ -214,7 +214,7 @@ TCHAR *RichEdit::GetText(int start, int end) const  		return ret;
  	}
 -	int len = GetTextLength();
 +	int len = (GetTextLength() + 1);
  	TCHAR *tmp = (TCHAR *)mir_alloc(len * sizeof(TCHAR));
  	GetWindowText(hwnd, tmp, len);
  	tmp[len] = 0;
  | 
