diff options
author | Max Horn | 2002-11-06 14:50:34 +0000 |
---|---|---|
committer | Max Horn | 2002-11-06 14:50:34 +0000 |
commit | f37e0fc763dce6752901e86669d821293bed33c7 (patch) | |
tree | df9895026d31ddcf055ff9f005e95c8fee0eeba9 | |
parent | 39b60537c8119fe0e3b2cbb1599dac7d689256e5 (diff) | |
download | scummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.tar.gz scummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.tar.bz2 scummvm-rg350-f37e0fc763dce6752901e86669d821293bed33c7.zip |
compile fix
svn-id: r5439
-rw-r--r-- | scumm/string.cpp | 10 |
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); } |