diff options
author | Eric Fry | 2018-04-30 18:25:49 +1000 |
---|---|---|
committer | Eugene Sandulenko | 2018-07-20 06:43:33 +0000 |
commit | 39798c63d1d6a7153527a726acfa3c1cf837760f (patch) | |
tree | 0e768d7cbafa98c973cd4b014e9c05ed779c33ca /engines/illusions/resources | |
parent | 9be0a7b08589163d9c0ff151d3fcd15e0e766bba (diff) | |
download | scummvm-rg350-39798c63d1d6a7153527a726acfa3c1cf837760f.tar.gz scummvm-rg350-39798c63d1d6a7153527a726acfa3c1cf837760f.tar.bz2 scummvm-rg350-39798c63d1d6a7153527a726acfa3c1cf837760f.zip |
ILLUSIONS: Fix static buffer overrun in debug log function.
This was causing the game to crash when loading the main scumm menu.
It was corrupting another static string in the about dialog.
Diffstat (limited to 'engines/illusions/resources')
-rw-r--r-- | engines/illusions/resources/scriptresource.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/engines/illusions/resources/scriptresource.cpp b/engines/illusions/resources/scriptresource.cpp index 5472d28658..53de6b4d2c 100644 --- a/engines/illusions/resources/scriptresource.cpp +++ b/engines/illusions/resources/scriptresource.cpp @@ -217,17 +217,6 @@ SceneInfo::~SceneInfo() { delete[] _resources; } -char *debugW2I(byte *wstr) { - static char buf[65]; - char *p = buf; - while (*wstr != 0) { - *p++ = *wstr; - wstr += 2; - } - *p = 0; - return buf; -} - void SceneInfo::load(byte *dataStart, Common::SeekableReadStream &stream) { _id = stream.readUint16LE(); _unk = stream.readUint16LE(); |