From da36884310e4c788b93f28ae0fc109e134bfb5a0 Mon Sep 17 00:00:00 2001 From: Rainer Kottenhoff Date: Mon, 30 Oct 2017 10:12:37 +0100 Subject: [PATCH] + fix: bug in getting string length from dialog box readout --- src/Edit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);