summaryrefslogtreecommitdiff
path: root/plugins/Import/mirabilis.cpp
diff options
context:
space:
mode:
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