diff options
Diffstat (limited to 'protocols/JabberG/src/jabber_menu.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_menu.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_menu.cpp b/protocols/JabberG/src/jabber_menu.cpp index 73ad98f51d..6b3d3b3636 100644 --- a/protocols/JabberG/src/jabber_menu.cpp +++ b/protocols/JabberG/src/jabber_menu.cpp @@ -602,7 +602,7 @@ INT_PTR __cdecl CJabberProto::OnMenuBookmarkAdd(WPARAM hContact, LPARAM) void CJabberProto::MenuInit()
{
char text[200];
- strcpy(text, m_szModuleName);
+ strncpy(text, m_szModuleName, sizeof(text)-1);
char* tDest = text + strlen(text);
CLISTMENUITEM mi = { sizeof(mi) };
@@ -833,7 +833,7 @@ void CJabberProto::GlobalMenuInit() // Hotkeys
char text[200];
- strcpy(text, m_szModuleName);
+ strncpy(text, m_szModuleName, sizeof(text) - 1);
char* tDest = text + strlen(text);
HOTKEYDESC hkd = { sizeof(hkd) };
|