mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 17:56:06 +00:00
[RICHED20] Fix array bounds overflow
editor.c(4518): warning C4045: 'text': array bounds overflow
This commit is contained in:
parent
9bfa6b51be
commit
edc8eb63c4
1 changed files with 4 additions and 0 deletions
|
@ -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:")},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue