mirror of
https://github.com/notepad-plus-plus/notepad-plus-plus.git
synced 2025-07-21 04:44:40 +02:00
Fix buffer overrun for wordchar list
This commit is contained in:
parent
315a161ae2
commit
c63673a1d8
@ -303,6 +303,7 @@ void ScintillaEditView::init(HINSTANCE hInst, HWND hPere)
|
||||
auto defaultCharListLen = execute(SCI_GETWORDCHARS);
|
||||
char *defaultCharList = new char[defaultCharListLen + 1];
|
||||
execute(SCI_GETWORDCHARS, 0, reinterpret_cast<LPARAM>(defaultCharList));
|
||||
defaultCharList[defaultCharListLen] = '\0';
|
||||
_defaultCharList = defaultCharList;
|
||||
delete[] defaultCharList;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user