aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Bacca2004-01-26 07:42:16 +0000
committerNicolas Bacca2004-01-26 07:42:16 +0000
commit5606ec3f45e435e8effb3b34295db2fd9f37d090 (patch)
treed8834ce4c706949537d4a027c3da8057db4851d5
parent240a599758d531a1d8cd73bd8bca59a768741f1a (diff)
downloadscummvm-rg350-5606ec3f45e435e8effb3b34295db2fd9f37d090.tar.gz
scummvm-rg350-5606ec3f45e435e8effb3b34295db2fd9f37d090.tar.bz2
scummvm-rg350-5606ec3f45e435e8effb3b34295db2fd9f37d090.zip
Come back of your favorite stupid EVC fix
svn-id: r12608
-rw-r--r--scumm/scummvm.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/scumm/scummvm.cpp b/scumm/scummvm.cpp
index aca3ebb05e..57167e59d0 100644
--- a/scumm/scummvm.cpp
+++ b/scumm/scummvm.cpp
@@ -651,14 +651,15 @@ ScummEngine::ScummEngine(GameDetector *detector, OSystem *syst, const ScummGameS
// HACK : changed to this code since PalmOS doesn't handle correctly %02x.
// It returns only 8 chars string in upper case so i need to use hex[],
// copy last 2 chars to md5str and convert result to lower case
+ int j;
char md5str[32+1];
char hex[8+1];
- for (int j = 0; j < 16; j++) {
+ for (j = 0; j < 16; j++) {
sprintf(hex, "%02x", (int)md5sum[j]);
memcpy(md5str+j*2, hex + strlen(hex) - 2, 2);
}
- for (int j = 0; j < 32; j++)
+ for (j = 0; j < 32; j++)
md5str[j] = tolower(md5str[j]);
// --