From edc8eb63c4c5ce3c50536e7c174eb32f94aca185 Mon Sep 17 00:00:00 2001 From: Timo Kreuzer Date: Sun, 13 Apr 2025 11:41:48 +0300 Subject: [PATCH] [RICHED20] Fix array bounds overflow editor.c(4518): warning C4045: 'text': array bounds overflow --- dll/win32/riched20/editor.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dll/win32/riched20/editor.c b/dll/win32/riched20/editor.c index d08f781d1da..5c602d5f74e 100644 --- a/dll/win32/riched20/editor.c +++ b/dll/win32/riched20/editor.c @@ -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:")},