[RICHED20] Fix array bounds overflow

editor.c(4518): warning C4045: 'text': array bounds overflow
This commit is contained in:
Timo Kreuzer 2025-04-13 11:41:48 +03:00
parent 9bfa6b51be
commit edc8eb63c4

View file

@ -4500,7 +4500,11 @@ static BOOL ME_IsCandidateAnURL(ME_TextEditor *editor, const ME_Cursor *start, i
#define MAX_PREFIX_LEN 9
#define X(str) str, ARRAY_SIZE(str) - 1
struct prefix_s {
#ifdef __REACTOS__
const WCHAR text[MAX_PREFIX_LEN + 1];
#else
const WCHAR text[MAX_PREFIX_LEN];
#endif
int length;
}prefixes[] = {
{X(L"prospero:")},