summaryrefslogtreecommitdiff
path: root/plugins/Spamotron
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:25:49 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-23 16:25:49 +0000
commitf2de79cb2eb8247548650ee80d75be109ac66ee7 (patch)
tree5f6ae43436ad92857bc3361556e581dea0a28270 /plugins/Spamotron
parent83810fbdf96dc0a842bf149cfa40749e95b0fe63 (diff)
replace strcat to mir_strcat
git-svn-id: http://svn.miranda-ng.org/main/trunk@13777 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Spamotron')
-rw-r--r--plugins/Spamotron/src/bayes.cpp6
-rw-r--r--plugins/Spamotron/src/options.cpp8
-rw-r--r--plugins/Spamotron/src/spamotron.cpp6
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/Spamotron/src/bayes.cpp b/plugins/Spamotron/src/bayes.cpp
index ae3692b1f6..b85a4249f0 100644
--- a/plugins/Spamotron/src/bayes.cpp
+++ b/plugins/Spamotron/src/bayes.cpp
@@ -30,7 +30,7 @@ int CheckBayes()
else
strncpy_s(bayesdb_fullpath, bayesdb_tmp, _TRUNCATE);
- strcat(bayesdb_fullpath, "\\"BAYESDB_FILENAME);
+ mir_strcat(bayesdb_fullpath, "\\"BAYESDB_FILENAME);
if (_access(bayesdb_fullpath,0) == 0)
return 1;
@@ -52,13 +52,13 @@ int OpenBayes()
if (tmp[mir_strlen(tmp)-1] == '\\')
tmp[mir_strlen(tmp)-1] = 0;
mir_strcpy(bayesdb_fullpath, tmp);
- strcat(bayesdb_fullpath, "\\"BAYESDB_PATH);
+ mir_strcat(bayesdb_fullpath, "\\"BAYESDB_PATH);
mir_free(tmp);
}
CallService(MS_UTILS_CREATEDIRTREE, 0, (LPARAM)bayesdb_fullpath);
- strcat(bayesdb_fullpath, "\\"BAYESDB_FILENAME);
+ mir_strcat(bayesdb_fullpath, "\\"BAYESDB_FILENAME);
bayesdb_fullpath_utf8 = mir_utf8encode(bayesdb_fullpath);
if (sqlite3_open(bayesdb_fullpath_utf8, &bayesdb) == SQLITE_OK)
diff --git a/plugins/Spamotron/src/options.cpp b/plugins/Spamotron/src/options.cpp
index d7ca019dc7..fd8d00c01a 100644
--- a/plugins/Spamotron/src/options.cpp
+++ b/plugins/Spamotron/src/options.cpp
@@ -136,8 +136,8 @@ INT_PTR CALLBACK DlgProcOptionsMain(HWND optDlg, UINT msg, WPARAM wParam, LPARAM
lvi.pszText = mir_a2u(pd[i]->szName);
ListView_InsertItem(hProtocolsList, &lvi);
memset(protoOption, 0, sizeof(protoOption));
- strcat(protoOption, "proto_");
- strcat(protoOption, pd[i]->szName);
+ mir_strcat(protoOption, "proto_");
+ mir_strcat(protoOption, pd[i]->szName);
ListView_SetCheckState(hProtocolsList, j++, _getOptB(protoOption, 0));
}
@@ -200,8 +200,8 @@ INT_PTR CALLBACK DlgProcOptionsMain(HWND optDlg, UINT msg, WPARAM wParam, LPARAM
ListView_GetItemText(hProtocolsList, i, 0, buf, SIZEOF(buf));
//wcstombs(protoName, buf, SIZEOF(buf));
memset(protoOption, 0, sizeof(protoOption));
- strcat(protoOption, "proto_");
- strcat(protoOption, mir_u2a(buf));
+ mir_strcat(protoOption, "proto_");
+ mir_strcat(protoOption, mir_u2a(buf));
_setOptB(protoOption, ListView_GetCheckState(hProtocolsList, i));
}
return TRUE;
diff --git a/plugins/Spamotron/src/spamotron.cpp b/plugins/Spamotron/src/spamotron.cpp
index a9701c81a2..87172f6092 100644
--- a/plugins/Spamotron/src/spamotron.cpp
+++ b/plugins/Spamotron/src/spamotron.cpp
@@ -85,8 +85,8 @@ int OnDBEventFilterAdd(WPARAM wParam, LPARAM lParam)
/*** Check for conditional and unconditional approval ***/
// Pass-through if protocol is not enabled
- strcat(protoOption, "proto_");
- strcat(protoOption, dbei->szModule);
+ mir_strcat(protoOption, "proto_");
+ mir_strcat(protoOption, dbei->szModule);
if (_getOptB(protoOption, 0) == 0) // Protocol is not handled by Spam-o-tron
return 0;
@@ -503,7 +503,7 @@ void RemoveNotOnListSettings()
mir_strcpy(protoName, "proto_");
while (hContact != NULL) {
if (db_get_s(hContact, "Protocol", "p", &dbv) == 0) {
- strcat(protoName, dbv.pszVal);
+ mir_strcat(protoName, dbv.pszVal);
if (_getOptB(protoName, 0) != 0) {
if (db_get_b(hContact, "CList", "Delete", 0) == 1) {
db_unset(hContact, "CList", "NotOnList");