aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/detection.cpp
diff options
context:
space:
mode:
authorEugene Sandulenko2007-05-27 14:21:42 +0000
committerEugene Sandulenko2007-05-27 14:21:42 +0000
commitc77a956e015d171d920f8acd19a7adf3e5af18a2 (patch)
treed5ea022305294b5a6e5ae9ffccdceb966d2a1da3 /engines/scumm/detection.cpp
parent3144ab58a6063e6658d228c4bdf22827c2249a49 (diff)
downloadscummvm-rg350-c77a956e015d171d920f8acd19a7adf3e5af18a2.tar.gz
scummvm-rg350-c77a956e015d171d920f8acd19a7adf3e5af18a2.tar.bz2
scummvm-rg350-c77a956e015d171d920f8acd19a7adf3e5af18a2.zip
Fix for bug #1726330: "SCUMM engine abuses stack" from same bugreport.
svn-id: r26974
Diffstat (limited to 'engines/scumm/detection.cpp')
-rw-r--r--engines/scumm/detection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/scumm/detection.cpp b/engines/scumm/detection.cpp
index d9ac3e42df..79f453b68b 100644
--- a/engines/scumm/detection.cpp
+++ b/engines/scumm/detection.cpp
@@ -319,6 +319,7 @@ static void computeGameSettingsFromMD5(const FSList &fslist, const GameFilenameP
static void detectGames(const FSList &fslist, Common::List<DetectorResult> &results, const char *gameid) {
DescMap fileMD5Map;
DetectorResult dr;
+ char md5str[32+1];
for (FSList::const_iterator file = fslist.begin(); file != fslist.end(); ++file) {
if (!file->isDirectory()) {
@@ -369,7 +370,6 @@ static void detectGames(const FSList &fslist, Common::List<DetectorResult> &resu
//
DetectorDesc &d = fileMD5Map[file];
if (d.md5.empty()) {
- char md5str[32+1];
if (Common::md5_file_string(d.node, md5str, kMD5FileSizeLimit)) {
d.md5 = md5str;