diff options
author | James Brown | 2002-12-28 15:16:26 +0000 |
---|---|---|
committer | James Brown | 2002-12-28 15:16:26 +0000 |
commit | c13ba9ef64e9b5b3dc5060cb961bb7aea9aeecc3 (patch) | |
tree | 8413778edae30a2f8c47ad4212a65df6f10bf1ed /scumm | |
parent | b90ef60f2aec3e33d1212d6700a91bd5adb538bf (diff) | |
download | scummvm-rg350-c13ba9ef64e9b5b3dc5060cb961bb7aea9aeecc3.tar.gz scummvm-rg350-c13ba9ef64e9b5b3dc5060cb961bb7aea9aeecc3.tar.bz2 scummvm-rg350-c13ba9ef64e9b5b3dc5060cb961bb7aea9aeecc3.zip |
revert
svn-id: r6233
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/string.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scumm/string.cpp b/scumm/string.cpp index 73a2ca1bd5..7d238859c7 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((char*)pointer + 1) + 1); + memcpy(trans_buff, pointer + 1, resStrLen(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((char*)pointer + 1) + 1); + memcpy(trans_buff, pointer + 1, resStrLen(pointer + 1) + 1); else trans_buff[0] = '\0'; return; } - memcpy(trans_buff, text, resStrLen((char*)text) + 1); + memcpy(trans_buff, text, resStrLen(text) + 1); } |