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 | |
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
-rw-r--r-- | plugins/Scriver/src/chat/tools.cpp | 8 | ||||
-rw-r--r-- | plugins/TabSRMM/src/chat/tools.cpp | 8 | ||||
-rw-r--r-- | src/core/stdchat/src/tools.cpp | 8 |
3 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Scriver/src/chat/tools.cpp b/plugins/Scriver/src/chat/tools.cpp index c42af74d93..ea3ce9918a 100644 --- a/plugins/Scriver/src/chat/tools.cpp +++ b/plugins/Scriver/src/chat/tools.cpp @@ -687,14 +687,14 @@ UINT CreateGCMenu(HWND hwnd, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO *s }
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"), 24);
+ lstrcpyn(szTemp, TranslateT("&Message"), SIZEOF(szTemp) - 1);
- if (lstrlen(szTemp) > 22)
- lstrcpyn(szTemp + 22, _T("..."), 4);
+ if (lstrlen(szTemp) > 40)
+ lstrcpyn(szTemp + 40, _T("..."), 4);
ModifyMenu(*hMenu, ID_MESS, MF_STRING | MF_BYCOMMAND, ID_MESS, szTemp);
gcmi.Type = MENU_ON_NICKLIST;
}
diff --git a/plugins/TabSRMM/src/chat/tools.cpp b/plugins/TabSRMM/src/chat/tools.cpp index 78e6ae288b..ba0501be3f 100644 --- a/plugins/TabSRMM/src/chat/tools.cpp +++ b/plugins/TabSRMM/src/chat/tools.cpp @@ -944,14 +944,14 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO gcmi.Type = MENU_ON_LOG;
}
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"), 24);
+ lstrcpyn(szTemp, TranslateT("&Message"), SIZEOF(szTemp) - 1);
- if (lstrlen(szTemp) > 22)
- lstrcpyn(szTemp + 22, _T("..."), 4);
+ if (lstrlen(szTemp) > 40)
+ lstrcpyn(szTemp + 40, _T("..."), 4);
ModifyMenu(*hMenu, ID_MESS, MF_STRING | MF_BYCOMMAND, ID_MESS, szTemp);
gcmi.Type = MENU_ON_NICKLIST;
}
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;
}
|