diff --git a/src/Edit.c b/src/Edit.c index 60c1063d9..aa7ac009c 100644 --- a/src/Edit.c +++ b/src/Edit.c @@ -4946,7 +4946,7 @@ int __fastcall EditGetFindStrg(HWND hwnd, LPCEDITFINDREPLACE lpefr, LPSTR szFind if (lpefr->bTransformBS) TransformBackslashes(szFind, (lpefr->fuFlags & SCFIND_REGEXP), Encoding_SciGetCodePage(hwnd)); - int slen = StringCchLenA(szFind, COUNTOF(szFind)); + int slen = StringCchLenA(szFind, FNDRPL_BUFFER); if (slen == 0) InfoBox(0, L"MsgNotFound", IDS_NOTFOUND);