summaryrefslogtreecommitdiff
path: root/plugins/SecureIM/src/crypt_lists.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-04-07 19:17:54 +0000
commitaed337ad90f145991a39b7900b8d42dc18178366 (patch)
treeca09e611f0f0fd6f6ba8c83364f548d097e3ab2e /plugins/SecureIM/src/crypt_lists.cpp
parentf19019ce1e932f1c773ca00e87fd64aea6e32430 (diff)
SecureIM:
- Minor Fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@12661 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/SecureIM/src/crypt_lists.cpp')
-rw-r--r--plugins/SecureIM/src/crypt_lists.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/plugins/SecureIM/src/crypt_lists.cpp b/plugins/SecureIM/src/crypt_lists.cpp
index 64de3c3fc1..e15f612b35 100644
--- a/plugins/SecureIM/src/crypt_lists.cpp
+++ b/plugins/SecureIM/src/crypt_lists.cpp
@@ -30,7 +30,7 @@ void loadSupportedProtocols()
SupPro *p = (SupPro*)mir_calloc(sizeof(SupPro));
p->name = mir_strdup(protos[i]->szModuleName);
if (szNames && p->name) {
- char tmp[128]; strcpy(tmp, p->name); strcat(tmp, ":");
+ char tmp[128]; strncpy(tmp, p->name, sizeof(tmp)-1); strncat(tmp, ":", sizeof(tmp)-1);
LPSTR szName = strstr(szNames, tmp);
if (szName) {
szName = strchr(szName, ':');
@@ -40,8 +40,10 @@ void loadSupportedProtocols()
if (szName) {
p->split_on = atoi(++szName); p->tsplit_on = p->split_on;
szName = strchr(szName, ':');
- if (szName)
- p->split_off = atoi(++szName); p->tsplit_off = p->split_off;
+ if (szName) {
+ p->split_off = atoi(++szName);
+ p->tsplit_off = p->split_off;
+ }
}
}
}