aboutsummaryrefslogtreecommitdiff
path: root/scumm/string.cpp
diff options
context:
space:
mode:
authorMax Horn2002-11-06 14:50:34 +0000
committerMax Horn2002-11-06 14:50:34 +0000
commitf37e0fc763dce6752901e86669d821293bed33c7 (patch)
treedf9895026d31ddcf055ff9f005e95c8fee0eeba9 /scumm/string.cpp
parent39b60537c8119fe0e3b2cbb1599dac7d689256e5 (diff)
downloadscummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.tar.gz
scummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.tar.bz2
scummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.zip
compile fix
svn-id: r5439
Diffstat (limited to 'scumm/string.cpp')
-rw-r--r--scumm/string.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp
index bf18625355..42faf6b6b5 100644
--- a/scumm/string.cpp
+++ b/scumm/string.cpp
@@ -1188,9 +1188,9 @@ void Scumm::translateText(byte *text, byte *trans_buff) {
pos += 3;
char *pointer = strchr((char*)text + 1, '/');
if (pointer != NULL)
- strcpy(trans_buff, pointer + 1);
+ strcpy((char *)trans_buff, pointer + 1);
else
- strcpy(trans_buff, "");
+ strcpy((char *)trans_buff, "");
return;
}
@@ -1248,12 +1248,12 @@ void Scumm::translateText(byte *text, byte *trans_buff) {
if (text[0] == '/') {
char *pointer = strchr((char*)text + 1, '/');
if (pointer != NULL)
- strcpy(trans_buff, pointer + 1);
+ strcpy((char *)trans_buff, pointer + 1);
else
- strcpy(trans_buff, "");
+ strcpy((char *)trans_buff, "");
return;
}
- strcpy(trans_buff, text);
+ strcpy((char *)trans_buff, (char *)text);
}