diff options
author | Max Horn | 2010-10-18 16:00:07 +0000 |
---|---|---|
committer | Max Horn | 2010-10-18 16:00:07 +0000 |
commit | 3b21db16188899eac9914fe1c3b32b311a3aa344 (patch) | |
tree | cb30447b471bbdc5cb54783624f2cd9754aac6cf /engines/scumm/scumm.cpp | |
parent | 35af08619df28db3a3487523a6cb5cc202b4c87e (diff) | |
download | scummvm-rg350-3b21db16188899eac9914fe1c3b32b311a3aa344.tar.gz scummvm-rg350-3b21db16188899eac9914fe1c3b32b311a3aa344.tar.bz2 scummvm-rg350-3b21db16188899eac9914fe1c3b32b311a3aa344.zip |
SCUMM: Fix parts of bug #3087898 (SCUMM: Code analysis warnings)
svn-id: r53567
Diffstat (limited to 'engines/scumm/scumm.cpp')
-rw-r--r-- | engines/scumm/scumm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/scumm/scumm.cpp b/engines/scumm/scumm.cpp index 86bb772c7a..68adeeffc2 100644 --- a/engines/scumm/scumm.cpp +++ b/engines/scumm/scumm.cpp @@ -136,7 +136,8 @@ ScummEngine::ScummEngine(OSystem *syst, const DetectorResult &dr) uint tmpVal; tmpStr[0] = dr.md5[2*i]; tmpStr[1] = dr.md5[2*i+1]; - sscanf(tmpStr, "%x", &tmpVal); + int res = sscanf(tmpStr, "%x", &tmpVal); + assert(res == 1); _gameMD5[i] = (byte)tmpVal; } |