From 71fbdae005c5d716934996d7255a3fb659bc7a7b Mon Sep 17 00:00:00 2001 From: Don Ho Date: Sat, 26 Jul 2025 15:40:49 +0200 Subject: [PATCH] Revert "Increase CURRENT_LINESTR variable length of run dialog" This reverts commit 11bc8107b0947c9b86ce27fd698730497312f65b, due to the crash caused by stackoverflow. Fix #16865 --- PowerEditor/src/NppBigSwitch.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PowerEditor/src/NppBigSwitch.cpp b/PowerEditor/src/NppBigSwitch.cpp index 97efff836..7bff1db9b 100644 --- a/PowerEditor/src/NppBigSwitch.cpp +++ b/PowerEditor/src/NppBigSwitch.cpp @@ -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(lParam);