From 04007636bc8f5ece651af428962471e4aa5d1b98 Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Thu, 15 Sep 2011 13:29:58 +0000 Subject: TranslitSwitcher: fixed not all string showing when transliterate git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@166 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- TranslitSwitcher/Src/Layoutproc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'TranslitSwitcher/Src/Layoutproc.cpp') diff --git a/TranslitSwitcher/Src/Layoutproc.cpp b/TranslitSwitcher/Src/Layoutproc.cpp index 1d7e8bd..74b0f1d 100644 --- a/TranslitSwitcher/Src/Layoutproc.cpp +++ b/TranslitSwitcher/Src/Layoutproc.cpp @@ -881,7 +881,7 @@ int OnButtonPressed(WPARAM wParam, LPARAM lParam) } else { - int FinalLen = slen + SIZEOF(dbv.ptszVal) + 1; + int FinalLen = lstrlen(sel) + SIZEOF(dbv.ptszVal) + 1; TCHAR* FinalString = (TCHAR*)mir_alloc((FinalLen+1)*sizeof(TCHAR)); mir_sntprintf(FinalString, FinalLen, _T("%s %s"), dbv.ptszVal, sel); SendMessage(hEdit, WM_SETTEXT, 0, (LPARAM)FinalString); -- cgit v1.2.3