From ddd1af0fdf37364c9472faedad941b4cc5f1b465 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Jul 2016 11:50:07 +0000 Subject: removed from git-svn-id: http://svn.miranda-ng.org/main/trunk@17136 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirandaG15/src/LCDFramework/misc.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'plugins/MirandaG15/src/LCDFramework/misc.cpp') diff --git a/plugins/MirandaG15/src/LCDFramework/misc.cpp b/plugins/MirandaG15/src/LCDFramework/misc.cpp index 339b88e393..d71597c745 100644 --- a/plugins/MirandaG15/src/LCDFramework/misc.cpp +++ b/plugins/MirandaG15/src/LCDFramework/misc.cpp @@ -8,7 +8,7 @@ tstring tstringprintf(tstring strFormat,...) { int mlen = (int)strFormat.length()+128; wchar_t *text = (wchar_t*)malloc(mlen*sizeof(wchar_t)); - _vsntprintf(text,mlen,strFormat.c_str(),vlist); + _vsnwprintf(text,mlen,strFormat.c_str(),vlist); va_end(vlist); strFormat = text; @@ -92,10 +92,7 @@ tstring toLower(const tstring &i_str) tstring str(i_str); for (size_t i = 0; i < str.size(); ++ i) { - if (_istlead(str[i])) - ++ i; - else - str[i] = tolower(str[i]); + str[i] = tolower(str[i]); } return str; } -- cgit v1.2.3