diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-10-13 08:25:41 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-10-13 08:25:41 +0000 |
commit | 06976a2f446e21dd5189bdb253ec4f80602738f8 (patch) | |
tree | 104e1a59736115f69039daeb4612b48f2c07ac56 /src/core | |
parent | 3c514e9ef4462510df55e56895685515a9c4c27b (diff) |
Raise limit for length of Nick in group chat user menu
git-svn-id: http://svn.miranda-ng.org/main/trunk@6478 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/stdchat/src/tools.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/stdchat/src/tools.cpp b/src/core/stdchat/src/tools.cpp index 4cddc0190e..771b2c623c 100644 --- a/src/core/stdchat/src/tools.cpp +++ b/src/core/stdchat/src/tools.cpp @@ -716,14 +716,14 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO }
else if (iIndex == 0)
{
- TCHAR szTemp[30];
+ TCHAR szTemp[50];
if (pszWordText)
mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("&Message %s"), pszWordText);
else
- lstrcpyn(szTemp, TranslateT("&Message"), SIZEOF(szTemp));
+ lstrcpyn(szTemp, TranslateT("&Message"), SIZEOF(szTemp) - 1);
- if (lstrlen(szTemp) > 22)
- lstrcpy(szTemp+22, _T("..."));
+ if (lstrlen(szTemp) > 40)
+ lstrcpy(szTemp + 40, _T("..."));
ModifyMenu(*hMenu, ID_MESS, MF_STRING|MF_BYCOMMAND, ID_MESS, szTemp);
gcmi.Type = MENU_ON_NICKLIST;
}
|