Revert "Increase CURRENT_LINESTR variable length of run dialog"

This reverts commit 11bc8107b0947c9b86ce27fd698730497312f65b,
due to the crash caused by stackoverflow.

Fix #16865
This commit is contained in:
Don Ho 2025-07-26 15:40:49 +02:00
parent 11bc8107b0
commit 71fbdae005

View File

@ -1013,7 +1013,7 @@ LRESULT Notepad_plus::process(HWND hwnd, UINT message, WPARAM wParam, LPARAM lPa
case NPPM_GETCURRENTWORD:
case NPPM_GETCURRENTLINESTR:
{
const int strSize = FINDREPLACE_MAXLENGTH * 2;
const int strSize = CURRENTWORD_MAXLENGTH;
wchar_t str[strSize] = { '\0' };
wchar_t *pTchar = reinterpret_cast<wchar_t *>(lParam);