summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2013-10-13 08:25:41 +0000
committerRobert Pösel <robyer@seznam.cz>2013-10-13 08:25:41 +0000
commit06976a2f446e21dd5189bdb253ec4f80602738f8 (patch)
tree104e1a59736115f69039daeb4612b48f2c07ac56 /plugins/Scriver
parent3c514e9ef4462510df55e56895685515a9c4c27b (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 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/chat/tools.cpp8
1 files changed, 4 insertions, 4 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;
}