mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[RICHED20] Fix array bounds overflow
editor.c(4518): warning C4045: 'text': array bounds overflow
This commit is contained in:
@@ -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:")},
|
||||
|
||||
Reference in New Issue
Block a user