summaryrefslogtreecommitdiff
path: root/plugins/Import/mirabilis.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-23 13:37:22 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-23 13:37:22 +0000
commit8ecb4cc047f5769912b148015934609530869a78 (patch)
treeaa2c94755cc81becb945cf61b67aa85aa9f9eb1d /plugins/Import/mirabilis.cpp
parentbc257af3b1710570907396e06a66e7482eda5bff (diff)
Import:
plusified git-svn-id: http://svn.miranda-ng.org/main/trunk@552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Import/mirabilis.cpp')
-rw-r--r--plugins/Import/mirabilis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Import/mirabilis.cpp b/plugins/Import/mirabilis.cpp
index 8d4577acd6..1f032827af 100644
--- a/plugins/Import/mirabilis.cpp
+++ b/plugins/Import/mirabilis.cpp
@@ -1035,7 +1035,7 @@ BOOL ImportExtendedMessage(DWORD dwOffset)
AddMessage( LPGEN("Ignoring msg with no text from %d ofs %d."), msg->uin, dwOffset );
return FALSE;
}
- pszText = _strdup(pDat + dwRichTextOffset + wRichTextLength + 2);
+ pszText = _strdup((char*)pDat + dwRichTextOffset + wRichTextLength + 2);
bFreeMe = TRUE;
mir_utf8decode(pszText, NULL);
wLength = (DWORD)strlen(pszText)+1;
@@ -1043,7 +1043,7 @@ BOOL ImportExtendedMessage(DWORD dwOffset)
else {
// Use the ANSI text segment
wLength = msg->textLen;
- pszText = pDat + dwOffset + 0x2A;
+ pszText = (char*)(pDat + dwOffset + 0x2A);
}
// Convert the event to a Miranda dbevent