summaryrefslogtreecommitdiff
path: root/src/core/stdmsg/src/msglog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/stdmsg/src/msglog.cpp')
-rw-r--r--src/core/stdmsg/src/msglog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/stdmsg/src/msglog.cpp b/src/core/stdmsg/src/msglog.cpp
index aa8cf996f3..f3e13ccd9d 100644
--- a/src/core/stdmsg/src/msglog.cpp
+++ b/src/core/stdmsg/src/msglog.cpp
@@ -78,7 +78,7 @@ static int AppendToBufferWithRTF(char *&buffer, size_t &cbBufferEnd, size_t &cbB
if (line == NULL)
return 0;
- size_t lineLen = _tcslen(line) * 9 + 8;
+ size_t lineLen = mir_tstrlen(line) * 9 + 8;
if (cbBufferEnd + lineLen > cbBufferAlloced) {
cbBufferAlloced += lineLen + 1024 - lineLen % 1024;
buffer = (char*)mir_realloc(buffer, cbBufferAlloced);
@@ -110,7 +110,7 @@ static int AppendToBufferWithRTF(char *&buffer, size_t &cbBufferEnd, size_t &cbB
int i, found = 0;
for (i = 0; i < SIZEOF(bbcodes); ++i) {
if (line[1] == bbcodes[i][1]) {
- size_t lenb = _tcslen(bbcodes[i]);
+ size_t lenb = mir_tstrlen(bbcodes[i]);
if (!_tcsnicmp(line, bbcodes[i], lenb)) {
size_t len = mir_strlen(bbcodefmt[i]);
memcpy(d, bbcodefmt[i], len);