summaryrefslogtreecommitdiff
path: root/plugins/IEView/src/TextToken.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2015-05-24 12:35:03 +0000
committerKirill Volinsky <mataes2007@gmail.com>2015-05-24 12:35:03 +0000
commitee697e0b699bcefec907c089e3ad455538c72c2f (patch)
tree030a675c2c93dc8b34a13b7fc9a3bea7477d84ba /plugins/IEView/src/TextToken.cpp
parent5aed15a8d8d8e4f913539761be496e0d1ba2c4f0 (diff)
replace wcscpy to mir_wstrcpy
replace wcscat to mir_wstrcat replace wcsncat to mir_wstrncat replace wcscmp to mir_wstrcmp replace wcsicmp to mir_wstrcmpi git-svn-id: http://svn.miranda-ng.org/main/trunk@13814 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/IEView/src/TextToken.cpp')
-rw-r--r--plugins/IEView/src/TextToken.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/IEView/src/TextToken.cpp b/plugins/IEView/src/TextToken.cpp
index ad08ee7856..1818154309 100644
--- a/plugins/IEView/src/TextToken.cpp
+++ b/plugins/IEView/src/TextToken.cpp
@@ -479,18 +479,18 @@ wchar_t *TextToken::htmlEncode(const wchar_t *str)
wchar_t *output = new wchar_t[c + 1];
for (out = output, ptr = str; *ptr != '\0'; ptr++) {
if (*ptr == ' ' && wasSpace) {
- wcscpy(out, L"&nbsp;");
+ mir_wstrcpy(out, L"&nbsp;");
out += 6;
}
else {
wasSpace = false;
switch (*ptr) {
- case '\n': wcscpy(out, L"<br>"); out += 4; break;
+ case '\n': mir_wstrcpy(out, L"<br>"); out += 4; break;
case '\r': break;
- case '&': wcscpy(out, L"&amp;"); out += 5; break;
- case '>': wcscpy(out, L"&gt;"); out += 4; break;
- case '<': wcscpy(out, L"&lt;"); out += 4; break;
- case '"': wcscpy(out, L"&quot;"); out += 6; break;
+ case '&': mir_wstrcpy(out, L"&amp;"); out += 5; break;
+ case '>': mir_wstrcpy(out, L"&gt;"); out += 4; break;
+ case '<': mir_wstrcpy(out, L"&lt;"); out += 4; break;
+ case '"': mir_wstrcpy(out, L"&quot;"); out += 6; break;
case ' ': wasSpace = true;
default: *out = *ptr; out++;
}