richedit: Prevent buffer overflows in WM_GETTEXT.