summaryrefslogtreecommitdiff
path: root/plugins/LotusNotify/src/debug.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-07-25 20:15:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-07-25 20:15:05 +0000
commit9d32b9cd791fb5f51dad17567152c70a8511a500 (patch)
treefd7aa3250ed409e720f26c341c0a5d736ed8083c /plugins/LotusNotify/src/debug.cpp
parent125a25c86eed41352d45eb8fb6f994f65700c3ec (diff)
replace sprintf to mir_snprintf (part 6)
git-svn-id: http://svn.miranda-ng.org/main/trunk@5485 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/LotusNotify/src/debug.cpp')
-rw-r--r--plugins/LotusNotify/src/debug.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/LotusNotify/src/debug.cpp b/plugins/LotusNotify/src/debug.cpp
index e27f291817..94e45edb6f 100644
--- a/plugins/LotusNotify/src/debug.cpp
+++ b/plugins/LotusNotify/src/debug.cpp
@@ -39,9 +39,9 @@ void log_p(const wchar_t* szText, ...){
va_list args;
va_start(args, szText);
- int len = _vscwprintf(szText, args ) + 1; // _vscprintf doesn't count terminating '\0'
+ int len = _vscwprintf(szText, args ) + 1; // _vscprintf doesn't count terminating '\0' //!!!!!!!!!!!!!!!!
wchar_t* buffer = new wchar_t[len * sizeof(wchar_t)];
- vswprintf_s(buffer, len, szText, args);
+ mir_sntprintf(buffer, len, szText, args);
va_end(args);
log(buffer);
delete buffer;