[saco] Match CUniBuffer::SetText(LPCTSTR); the scratch buffer holds 2049 WCHARs

This commit is contained in:
ricardoofnl
2026-08-30 17:20:04 +07:00
parent 24af848246
commit 1b02719af0
+1 -1
View File
@@ -7812,7 +7812,7 @@ bool CUniBuffer::SetText( LPCTSTR wszText )
{
if(lstrlenA(wszText) > 1024) return false;
WCHAR szBuffer[2048];
WCHAR szBuffer[2049];
ConvertAnsiToWide(wszText, szBuffer, 2048);
SetText(szBuffer);
return true;