summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:14:48 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-16 19:14:48 +0000
commite2e58c486980e2b1bb567a5fe70c5eb444db5931 (patch)
tree882c41c2ff8cac2864452a964e411303f41993fe
parent4425ddb9299501e3478659b49f230a36323dca62 (diff)
fix for strncat use
git-svn-id: http://svn.miranda-ng.org/main/trunk@13652 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/JabberG/src/jabber_adhoc.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/protocols/JabberG/src/jabber_adhoc.cpp b/protocols/JabberG/src/jabber_adhoc.cpp
index d052278a92..27e864336d 100644
--- a/protocols/JabberG/src/jabber_adhoc.cpp
+++ b/protocols/JabberG/src/jabber_adhoc.cpp
@@ -541,8 +541,8 @@ int __cdecl CJabberProto::ContactMenuRunCommands(WPARAM hContact, LPARAM lParam)
if (selected > 0) {
JABBER_RESOURCE_STATUS *r = item->arResources[selected - 1];
if (r) {
- _tcsncat(jid, _T("/"), SIZEOF(jid));
- _tcsncat(jid, r->m_tszResourceName, SIZEOF(jid));
+ _tcsncat(jid, _T("/"), SIZEOF(jid) - mir_tstrlen(jid));
+ _tcsncat(jid, r->m_tszResourceName, SIZEOF(jid) - mir_tstrlen(jid));
}
selected = 1;
}