summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-15 06:21:47 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-15 06:21:47 +0000
commita735b401218ad35318cf7e3d4e93581bb97d5d95 (patch)
tree9086fc13bef6dd5866b116a5dc0a0558e1784eaf /plugins
parenta08ae16d9d2dad4efda6e09201561b18f23649b3 (diff)
warning fixes
git-svn-id: http://svn.miranda-ng.org/main/trunk@422 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/IgnoreState/commonheaders.h1
-rw-r--r--plugins/YAPP/services.cpp12
2 files changed, 7 insertions, 6 deletions
diff --git a/plugins/IgnoreState/commonheaders.h b/plugins/IgnoreState/commonheaders.h
index 315c043a03..dbc2a346cd 100644
--- a/plugins/IgnoreState/commonheaders.h
+++ b/plugins/IgnoreState/commonheaders.h
@@ -24,6 +24,7 @@
#define MIRANDA_VER 0x0A00
//#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
+#define _CRT_SECURE_NO_WARNINGS
#define _WIN32_WINNT 0x0501
#ifndef _WIN32_IE
diff --git a/plugins/YAPP/services.cpp b/plugins/YAPP/services.cpp
index 12b7110264..ea60b013b4 100644
--- a/plugins/YAPP/services.cpp
+++ b/plugins/YAPP/services.cpp
@@ -23,19 +23,19 @@ void StripBBCodesInPlace(wchar_t *text) {
}
if(read > len) break;
- if(len - read >= 3 && (wcsnicmp(text + read, L"[b]", 3) == 0 || wcsnicmp(text + read, L"[i]", 3) == 0))
+ if(len - read >= 3 && (_wcsnicmp(text + read, L"[b]", 3) == 0 || _wcsnicmp(text + read, L"[i]", 3) == 0))
read += 3;
- else if(len - read >= 4 && (wcsnicmp(text + read, L"[/b]", 4) == 0 || wcsnicmp(text + read, L"[/i]", 4) == 0))
+ else if(len - read >= 4 && (_wcsnicmp(text + read, L"[/b]", 4) == 0 || _wcsnicmp(text + read, L"[/i]", 4) == 0))
read += 4;
- else if(len - read >= 6 && (wcsnicmp(text + read, L"[color", 6) == 0)) {
+ else if(len - read >= 6 && (_wcsnicmp(text + read, L"[color", 6) == 0)) {
while(read < len && text[read] != L']') read++;
read++;// skip the ']'
- } else if(len - read >= 8 && (wcsnicmp(text + read, L"[/color]", 8) == 0))
+ } else if(len - read >= 8 && (_wcsnicmp(text + read, L"[/color]", 8) == 0))
read += 8;
- else if(len - read >= 5 && (wcsnicmp(text + read, L"[size", 5) == 0)) {
+ else if(len - read >= 5 && (_wcsnicmp(text + read, L"[size", 5) == 0)) {
while(read < len && text[read] != L']') read++;
read++;// skip the ']'
- } else if(len - read >= 7 && (wcsnicmp(text + read, L"[/size]", 7) == 0))
+ } else if(len - read >= 7 && (_wcsnicmp(text + read, L"[/size]", 7) == 0))
read += 7;
else {
if(text[read] != text[write]) text[write] = text[read];