diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-24 14:52:01 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2013-07-24 14:52:01 +0000 |
commit | 3e02ce14f6cce63910b266655a9c33bd3a70f17a (patch) | |
tree | 8fcf4371ea0d10693e7697f305d51988484faf69 /plugins/Spamotron/src/options.cpp | |
parent | 107471fac771abe5774d10769e36c0903a908685 (diff) |
replace sprintf to mir_snprintf (part 4)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5467 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Spamotron/src/options.cpp')
-rw-r--r-- | plugins/Spamotron/src/options.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Spamotron/src/options.cpp b/plugins/Spamotron/src/options.cpp index 0c9fda4762..7ca88475f6 100644 --- a/plugins/Spamotron/src/options.cpp +++ b/plugins/Spamotron/src/options.cpp @@ -524,7 +524,7 @@ INT_PTR CALLBACK DlgProcOptionsBayes(HWND optDlg, UINT msg, WPARAM wParam, LPARA if (!dbuf)
return FALSE;
GetDlgItemText(optDlg, IDC_OPT_BAYES_LEARNBOX, dbuf, len);
- sprintf(cbuf, "%0.04f", get_msg_score(dbuf));
+ mir_snprintf(cbuf, SIZEOF(cbuf), "%0.04f", get_msg_score(dbuf));
SetDlgItemText(optDlg, IDC_OPT_BAYES_LEARNBOX, _T(""));
MessageBoxA(NULL, cbuf, Translate("Message score"), MB_OK);
free(dbuf);
|