aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorPaweł Kołodziejski2002-12-28 14:58:16 +0000
committerPaweł Kołodziejski2002-12-28 14:58:16 +0000
commit5de3a31b804b7ba55f0b401aa629156f15fa6899 (patch)
treed49c8168468c0c06f3462aa8b5fa6a0d4b6de662 /scumm/string.cpp
parentb5d8f469b6be67e3b02b753278f40b4fa184165a (diff)
downloadscummvm-rg350-5de3a31b804b7ba55f0b401aa629156f15fa6899.tar.gz
scummvm-rg350-5de3a31b804b7ba55f0b401aa629156f15fa6899.tar.bz2
scummvm-rg350-5de3a31b804b7ba55f0b401aa629156f15fa6899.zip
fix compilation under VC6
svn-id: r6230
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index 7d238859c7..73a2ca1bd5 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -820,7 +820,7 @@ void Scumm::translateText(byte *text, byte *trans_buff) {
pos += 3;
byte *pointer = (byte *)strchr((char*)text + 1, '/');
if (pointer != NULL)
- memcpy(trans_buff, pointer + 1, resStrLen(pointer + 1) + 1);
+ memcpy(trans_buff, pointer + 1, resStrLen((char*)pointer + 1) + 1);
else
trans_buff[0] = '\0';
return;
@@ -880,12 +880,12 @@ void Scumm::translateText(byte *text, byte *trans_buff) {
if (text[0] == '/') {
byte *pointer = (byte *)strchr((char*)text + 1, '/');
if (pointer != NULL)
- memcpy(trans_buff, pointer + 1, resStrLen(pointer + 1) + 1);
+ memcpy(trans_buff, pointer + 1, resStrLen((char*)pointer + 1) + 1);
else
trans_buff[0] = '\0';
return;
}
- memcpy(trans_buff, text, resStrLen(text) + 1);
+ memcpy(trans_buff, text, resStrLen((char*)text) + 1);
}