summaryrefslogtreecommitdiff
path: root/plugins/Spamotron
diff options
context:
space:
mode:
authorRozhuk Ivan <rozhuk.im@gmail.com>2014-12-02 05:19:23 +0000
committerRozhuk Ivan <rozhuk.im@gmail.com>2014-12-02 05:19:23 +0000
commit114f83d5d8a73b3f1435e09b1d91aff843e4ce15 (patch)
tree0805188bf6bcf5749d1e76d5d1e73ccb6cf41cc4 /plugins/Spamotron
parent6e2b6b31bae6d69bff5271451e73eb08637b8118 (diff)
mir_snprintf(..., "%s", ...) -> strncpy_s(...)
build fix to prevous commit git-svn-id: http://svn.miranda-ng.org/main/trunk@11212 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Spamotron')
-rw-r--r--plugins/Spamotron/src/bayes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Spamotron/src/bayes.cpp b/plugins/Spamotron/src/bayes.cpp
index d444e12411..d7b7518182 100644
--- a/plugins/Spamotron/src/bayes.cpp
+++ b/plugins/Spamotron/src/bayes.cpp
@@ -28,7 +28,7 @@ int CheckBayes()
if (hBayesFolder)
FoldersGetCustomPath(hBayesFolder, bayesdb_fullpath, MAX_PATH, bayesdb_tmp);
else
- mir_snprintf(bayesdb_fullpath, SIZEOF(bayesdb_fullpath), "%s", bayesdb_tmp);
+ strncpy_s(bayesdb_fullpath, bayesdb_tmp, _TRUNCATE);
strcat(bayesdb_fullpath, "\\"BAYESDB_FILENAME);
if (_access(bayesdb_fullpath,0) == 0)